Click here to Login

                                                   candle programinig


2019-09-14 03:49:38

If I Have strategy having following rules how to program in quant share
1) 5 period ema cross 9 peroid ema
2) two green candle above 5 period ema after cross over

2019-09-16 11:22:26



a = cross(ema(6), ema(9));
gc = close > open and close > ema(5);
buy = gc and ref(gc, 1) and ref(a, 2); // ref references the N previous bar

The easiest way to learn this is to practice by displaying these values on a chart. Right click on the chart, select "Edit formula" then type the above formula and the following to display the value of the variable "a"
plot(a, "");

No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Candle Pattern Forecast
Pullback to EMA 20 during Downtrend
Swing Trading Indicator (STI)
Ratio of open-close to high-low range

How-to Lessons
How to quickly select stocks based on the last value of a databas...
How to download new quotes when selecting a chart
How to create histogram charts
How to create a composite index/indicator
How to create and trade a Neural Network model

Related Forum Threads
Candle Stick % indicator
Bullish vs Bearish Candle patterns
Candle Stick Ratio Plot custom function
bollinger band & rsi formula

Blog Posts
Beta release
How To Create and Backtest an S&P 500 Trend Following System
Backtesting a Strategy Based on Bond and Stock Index ETFs
Fundamental Stock Analysis: Rank stocks based on a valuation rati...
Day Trading: A trading system that combines intraday and EOD data

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2020
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.