You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
you could do an OrderSelect() loop to find the newest open trade and then do
testing...
testing...
What if the Order was opened 10 mins ago and closed 5 mins ago . . . you need to look at the History pool also . . .
Don't do this . . .
because it means it will only work on an M15 chart.
Presumably the function trade() sets a global variable trade_successful
It would be better for the function trade() to return a bool so you can just write
Try this . . .
not compiled or tested . . . . caveat emptor
Try this . . .
not compiled or tested . . . . caveat emptor
Still testing ... but looks like this did the trick! (few typo's... here is fixed code)
You can use i for both loops are they are outside of each other . . . but if you are going to use j then change this also . . .
You can use i for both loops are they are outside of each other . . . but if you are going to use j then change this also . . .
duh... thanks
/* Put the following just before the end of your code. */ Sleep(1000*60*15);
Still testing ... but looks like this did the trick! (few typo's... here is fixed code)
The code above works! thanks RaptorUK, you do man!
Thank you everyone for taking time looking into this