General Trading Chat

vivektrader

In persuit of financial independence.
Yes, how can I do that on Pi? It doesn't show Nifty Spot as a security, only current and future NFs. Backtesting Mar future for more than a month will be wrong. Also, backtest is limited to 3 months on Pi.

Maybe a high beta stock can be used as a proxy.
In pi first select NSE and the to the right tab select indices and then from indices select nifty50.
 

oldtrader

Well-Known Member
Yes, how can I do that on Pi? It doesn't show Nifty Spot as a security, only current and future NFs. Backtesting Mar future for more than a month will be wrong. Also, backtest is limited to 3 months on Pi.

Maybe a high beta stock can be used as a proxy.
I can do it on Amibroker. I will need the Buy and Sell conditions. Data is not a problem, I have lots of data.
 

arsh22g

Well-Known Member
I can do it on Amibroker. I will need the Buy and Sell conditions. Data is not a problem, I have lots of data.
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.
 
Last edited:

oldtrader

Well-Known Member
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.
ADX and MACD is OK, But DIP and DIN are new to me. Will search in Ami Help section.
 

Similar threads