I am developping a strategy now, but I am facing real problems to move forward.
I am wondering if there is a way to make complex calculations in Strategy builder. I have developped an indicator and thought I could copy it to strategy builder, but I have realized that it is not working that way.
I am failing to make such calculations:
double val1 = Math.Min(Math.Max(double val2, - double val3), val4); double val5 = (Close[0] - Open[0])/3
I also have the following code:
if(Open[0] < Close[0])
{
if(Open[2] < Close[2]
enterLong();
}}
here again, I unlocked the script and I continue in unlocked script.
1) Could you please tell me if I can implement just one line of the conditions and continue with others in the unlocked script? How accurate would be this procedure?
2) Can the calculations be done only in unlocked script?
Any help would be welcome.
Many thanks in advance.

Comment