Hey!
* Iīm new to
MultiCharts and trying to code a seasonal code that only applies for specific months. Iīve tried everything, not sure if it works?
* The average buy down (100 shares) does not work either. Anyone knows?
(The conditions look different since I tried them both without sucess)
This is the code;
Inputs:
Length (24);
Condition1 = c > average (c,200);
Condition2 = Month(currentdate)<> 5;
Condition3 = Month(currentdate)<> Month (6);
Condition4 = Month(currentdate)<> Month (7);
Condition5 = Month(currentdate)<> Month (8);
if marketposition = 0 then begin
if rsi (c,length) <= 30 and condition1 and condition2 and condition3 and condition4 and condition5 then begin
buy ("Enter long 50") 50 shares next bar at market;
end;
end;
if marketposition = 1 then begin
if rsi (c, length) <= 20 and condition1 then begin
buy ("Enter long 100") 100 shares this bar at close;
end;
end;
if rsi(c,length) >= 55 then sell this bar at close;