voidOnTick()
{
staticdatetime lastbartime=0; // static will remember its value on subsequent callsdatetime bartime=iTime(NULL,0,0); // get the start time of the actual barif(BuyConditionsMet())
{
if(lastbartime!=bartime) BuyNow(); // buy only once a bar
lastbartime=bartime;
}
}
ECI Invest: ok, it would be nice if you can show me where to add
it in the original code, its all greek to me. Can you please show me?
Learntocodeit.
If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the
code, you don't know how to integrate it into yours.
William Roeder: Learntocodeit.
If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the
code, you don't know how to integrate it into yours.
I would love to learn how to code. Any suggestions where I could learn this? The internet is very vague with this information. How did you learn?
ECI Invest: I would love to learn how to code. Any
suggestions where I could learn this? The internet is very vague with this information. How did you learn?
I just save the time for the next possible trade in an array or variable, after OrderSend().
Thanx Andrew, but I am so clueless with this programming and dont understand it. I feel I am wasting your time. Thanx again
The code needed to solve this:
Thanx all for your contributions. I have found a solution to the issue.
Much appreciated!
Learn to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
I would love to learn how to code. Any suggestions where I could learn this? The internet is very vague with this information. How did you learn?