mmmmm.... well personally i think it's written correctly - the only problem is the placement of the code snippets.... could you place it correctly? it's not clear to me how to do that.
CLAIN: mmmmm.... well personally, i think it's all written correctly - the only problem is the placement of the code snippets.... could you place it correctly? it's not clear to me how to do that
Well I won't post it exactly, but as has already been written all the custom functions are beyond start.
Remove the description of custom functions to a separate file, make sure the rest of the program compiles without error bracketing messages and dock each function to the very end of the resulting code.
Dear Professionals, please give some advice. There are two moving averages with periods of 5 and 60. When crossing the fast MA over the slow one from the bottom upwards + filters, it opens a Buy trade. The problem is, how to make a trade open only once and when it closes, not open a new trade, even if there are suitable conditions to open, until there is a reverse crossover?
Dear Professionals, please give some advice. There are two moving averages with periods of 5 and 60. When crossing a fast MA over a slow MA from the bottom up + filters, opens a trade on Buy. The problem is, how to make a trade open only once and when it closes, not to open a new trade, even if there are suitable conditions to open, until a reverse crossover occurs?
set a flag to prohibit further opening and remove the flag when crossing back, a couple of bars can be delayed to prevent bouncing
Honestly, I don't know if you can describe one function within another, I've never come across it.
mmmmm.... well personally, i think it's all written correctly - the only problem is the placement of the code snippets.... could you place it correctly? it's not clear to me how to do that
Well I won't post it exactly, but as has already been written all the custom functions are beyond start.
At concept level
Start (){}
MACD{}
AnalyzeSignal(){}
Remove the description of custom functions to a separate file, make sure the rest of the program compiles without error bracketing messages and dock each function to the very end of the resulting code.
Thank you, it worked =) only the deals don't open, but that's a small thing =) couldn't have done it without you )
seek advice from a programmer
Hello.
Please help - please respond to my post on page 196. (question about int MAGIC;)
Thank you in advance.
Hello.
Please help - please respond to my post on page 196. (question about int MAGIC;)
Thank you in advance.
Have you tried to make functions with parameters? So as not to use external global variables (everyone can call them by their own name)
seek advice from a programmer
set a flag to prohibit further opening and remove the flag when crossing back, a couple of bars can be delayed to prevent bouncing
Have you tried making functions with parameters? So as not to use external global variables (everyone can call them their own way)
I mean, like:
???
...and the condition
will be tracked correctly?
I mean, like:
???
...and the condition
will be tracked correctly?
Like this, the variable OrdTicket should be assigned some default value. Otherwise there are no open positions and the function will return something