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
guys,
thanks a lot,
let me tell you why i want to use LastOpenPrice(OP_BUY) and LastOpenPrice(OP_SELL) because i want to use them in some conditions like
if ( LastOpenPrice(OP_BUY) -LastOpenPrice(OP_SELL)) > 0.0090 // for that reason i need to keep the last order was open for buy and the last order was open for sell, so i need separate last order one for buy and the other for sell.
it the explanation for function n.4 clear?
function number 4:
// i want to get the order closed before the last closed order whatover buy or sell.
4- function to get and keep the previous close price before the last close order whatover buy or sell. thanks
guys,
It really does not work
As you can see in the images
i started to testing the EA from 01/03/2011 to 11/04/2011
in the first hour for 01/03/2011
the position was opened but no one from above conditions availble . that let me really crazy
it the explanation for function n.4 clear?
function number 4:
// i want to get the order closed before the last closed order whatover buy or sell.
4- function to get and keep the previous close price before the last close order whatover buy or sell. thanks
the second option:
the Order close price of the Buy or Sell that closed before the last one that closed ?
the second option:
the Order close price of the Buy or Sell that closed before the last one that closed ?
Try this . . .
To get the last close price of the last order that was a Buy or a Sell and matched the Symbol and magic.number do this LastClosePrice(1)
To get the one before that do this . . . LastClosePrice(2 )
NOTE: this code WILL NOT WORK with your magic numbers as shown in your code above . . .
Guys.
Is there anybody can used teamviewer program then we will access togethor and checking what is the real issue.
guys,
It really does not work
As you can see in the images
i started to testing the EA from 01/03/2011 to 11/04/2011
in the first hour for 01/03/2011
the position was opened but no one from above conditions availble . that let me really crazy
It is not crazy. It is "reasonable" for an order to be opened because:
If the above function returns ZERO, then any scenario such as the one below may occur
I suggest you place a "master" logic, over and above this. If function LastOpenPrice(...) returns zero....what is your game plan?