nileshdmankar
Pine Script Rookie
Pine Script Rookie
Posts: 1
Joined: April 30th, 2021
Contact: TradingView Profile

enter on level and exit on target / SL

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.

Return to “General Trading Discussions”