Try these on 5-min
Case 1:
Buy : ADX(14)>35 AND DIP(14)>DIN(14)
Sell : ADX(14)>35 AND DIN(14)>DIP(14)
Case 2:
Buy: SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
A>B AND ADX(14)>35 AND DIP(14)>DIN(14)
Sell: SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
A<B AND ADX(14)>35 AND DIN(14)>DIP(14)
No logic for exit yet.
Case 1:
Buy : ADX(14)>35 AND DIP(14)>DIN(14)
Sell : ADX(14)>35 AND DIN(14)>DIP(14)
Case 2:
Buy: SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
A>B AND ADX(14)>35 AND DIP(14)>DIN(14)
Sell: SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
A<B AND ADX(14)>35 AND DIN(14)>DIP(14)
No logic for exit yet.
Hi Arsh,
Thanks to the help of pratap Sir, I have written the AFL for Case1, and tested on data from May2015 to date. More data is on another drive, will check if required. There were 200 trades in 10 months with 1491 NF points , works out to be 150 NF points per month with average of 20 trades per month. I am posting a snapshot below, also the xls of the backtest.
http://www.filedropper.com/arsh
Compare it with the system I mentioned earlier, which gives 1846 points in 234 trades for the same time period.
Regarding Case 2, help needed from pratap Sir, for MACD code
Last edited: