Hi Friends. I want to code a tricky situation.
I want to trade base on some fibonacci ratios as per below condition
Condition:
As per previous day high and low, i can find 50% retracement.
Let say i saved that retracement level value into variable retracement1.Now I will wait for scenario whever, 5 candle first cross this retracement.
Later if same candle close above 50% retracement I will place long order at exact 50%
SL is stoploss variable value.
target is target variable value.
I did coding till finding and saving 50% retracement, SL and target values into some variable.
Please help me to proceed further.