For this simple code of
Buy = StochK(5,3) Crosses StochD(5,3,3)
Sell = StochD(5,3,3) Crosses StochK(5,3)
how to write a dynamic SL in AFL code itself?
When i buy on the above rule, I want the SL to be the low of the candle on which the buy signal is triggered.
When i Sell, SL to be High of the candle on which the sell signal is given.
And Targets are to be booked as per the range of the bar on which the signal is given.
Suppose Buy signal given on a Bar with:-
High of the signal bar Rs 250
Low of the signal bar Rs 248
SL is to be Rs < 248
Profit 1 is Rs 252(diff between high and low of the signal bar)
Profit 2 is Rs 254(range * 2)
I usually make use of Settings window in Auto analyser window. But it has only fixed SLs based on Points, percentages etc.
Some good heart plz help me out
Rgds
Boona
Buy = StochK(5,3) Crosses StochD(5,3,3)
Sell = StochD(5,3,3) Crosses StochK(5,3)
how to write a dynamic SL in AFL code itself?
When i buy on the above rule, I want the SL to be the low of the candle on which the buy signal is triggered.
When i Sell, SL to be High of the candle on which the sell signal is given.
And Targets are to be booked as per the range of the bar on which the signal is given.
Suppose Buy signal given on a Bar with:-
High of the signal bar Rs 250
Low of the signal bar Rs 248
SL is to be Rs < 248
Profit 1 is Rs 252(diff between high and low of the signal bar)
Profit 2 is Rs 254(range * 2)
I usually make use of Settings window in Auto analyser window. But it has only fixed SLs based on Points, percentages etc.
Some good heart plz help me out
Rgds
Boona