I need to figure out how to turn my strategy into a study for V5 Pinescript.
I cannot seem to find any info about it online.
Im pretty sure for v3 you have to change strategy.entry to study.entry but this doesnt work on V5 and been trying to figure this out for hours.
Here are some sections of my script that will most probably be the sections needed to be updated.
Any tips and tricks will help!
strategy('v5 USOIL strat EMA', shorttitle='v5 USOIL strat EMA', overlay=true, pyramiding=0, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
strategy.entry('Buy', strategy.long)
alert("e=oanda a=localhost s=west texas oil b=long q=38 t=market d=5", alert.freq_all)
alert("e=oanda a=localhost s=west texas oil q=38 t=market c=position", alert.freq_all)