CANDLE COUNT SETUP PINE

This strategy works on a very simple rule 

If X consecutive candles are Green, Buy on opening of Next candle

If Y consecutive candles are Red, Short on Opening of Next candle.

In this Strategy we have added a lot of dynamic options for user to play around.

Candle count : User can choose how many consecutive candles should be red/green.

Target 1 : In  points and percentage

Target 2 : In points and percentage

SL : In points and percentage

Trailing SL : In points and percentage

Switch to toggle between Intraday mode and Positional mode.

Intraday start and end time range

Quantity : Fixed/exposure based.

%QTY exit and target 1

and few other risk management settings.

 

This CODE can be connected to many discount brokers for fully automated trade via ALGOFOX.

 

Similar products