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 automatically arrange charts?
How to calculate the average of a time series using the money man...
How to create a moving average of an indicator
How to plot the relative performance of several stocks/indices
How to import trades into a portfolio

Related Forum Threads
Candle Stick % indicator
DAY CANDLE LIVE
Bullish vs Bearish Candle patterns
Candle Stick Ratio Plot custom function
Hammer

Blog Posts
Automatically create historical quotes charts
Backtesting Your Trading Systems: Symbol Segmentation
Download historical EOD data for the stock, futures, ETF and Fore...
Trading System: Buy stocks with the highest Sharpe ratio
Download Trading Data using the Pre-Script









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 © 2024 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.