Buongiorno, qualcuno sa tradurmi questo codice per la prorealtime?
inputs:period_ma(20), lookback(1),lookback2(1),factor(1.25);
value1= average(c,period_ma) – average(c,period_ma)[lookback];
condition1 = average(c,period_ma) < average(c,period_ma)[lookback];
condition2 = value1<value1[lookback2]*factor;
If condition1 and c < average(c,period_ma) and condition2
then sellshort 100000/c shares this bar at close else buytocover this bar on close;
if not condition1 then buytocover this bar on c;
grazie,
Alfredo