Click here to Login





                                                   candle programinig

  0

0
shashikant
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



QuantShare
2019-09-16 11:22:26

  0

Hi,

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
0




Reply:

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"










QuantShare

Trading Items
Candle Pattern Forecast
Simple hammer
Swing Trading Indicator (STI)
Pullback to EMA 20 during Downtrend
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 create histogram charts
How to download EOD quotes for active and valid stocks only
How to create a composite index/indicator
How to create and trade a Neural Network model

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

Blog Posts
Stocks: Market Capitalization
Let me Show You How to Create Hundreds of Profitable Trading Syst...
Learn How to Create Your Own Technical Analysis Indicators
Fundamental analysis: How to track economic indicators in the For...
How to create buy and sell trading rules based on News Data









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright 2019 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
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.