Methods, Subroutines ?????
Posted: Aug 18 2011
Hello
How can I code subroutines on Multicharts?
I need to reuse part of my code several times.
Somebody advised me to you use something like:
But I could find any documentation on "method".
Can I use sell and buy orders within the subroutine?, How do I invoke it?
How can I code subroutines on Multicharts?
I need to reuse part of my code several times.
Somebody advised me to you use something like:
Code: Select all
Method double Subroutine1(double dou) begin
if t=1200 then Buy this bar;
Return dou*2;
end;
value1=Subroutine1(c);
setexitonclose;
Can I use sell and buy orders within the subroutine?, How do I invoke it?