bool Is previous trade long ()
{
if (OrdersHistoryTotal() == 0) return(false);
for (int cc = OrdersHistoryTotal() - 1; cc >= 0; cc--)
{
if (!OrderSelect(cc, SELECT_BY_POS, MODE_HISTORY) ) continue;
if (OrderMagicNumber() != MagicNumber) continue;
if (OrderSymbol() != Symbol() ) continue;
But i'm stuck here, how differentiate the longs form the shorts ?
Can someone please could help me to correct my code, thanks a lot !
bool Is previous trade long ()
{
if (OrdersHistoryTotal() == 0) return(false);
for (int cc = OrdersHistoryTotal() - 1; cc >= 0; cc--)
{
if (!OrderSelect(cc, SELECT_BY_POS, MODE_HISTORY) ) continue;
if (OrderMagicNumber() != MagicNumber) continue;
if (OrderSymbol() != Symbol() ) continue;
But i'm stuck here, how differentiate the longs form the shorts ?
Can someone please could help me to correct my code, thanks a lot !
i am trying to write an ea. would someone please tell me how to inform the mq4 platform and the MetaEditer where the Empty4 source and exe files are located? i want to put them in a folder located at 'c:\fx\experts'. and where should i look to find that information?
jjasper7 » 07 Dec 2016 09:58 wrote:i am trying to write an ea. would someone please tell me how to inform the mq4 platform and the MetaEditer where the Empty4 source and exe files are located? i want to put them in a folder located at 'c:\fx\experts'. and where should i look to find that information?
You need to put it in the MQL4\Experts folder.
BR
Mathias
jjasper7 » Wed Dec 07, 2016 7:58 am wrote:i am trying to write an ea. would someone please tell me how to inform the mq4 platform and the MetaEditer where the Empty4 source and exe files are located? i want to put them in a folder located at 'c:\fx\experts'. and where should i look to find that information?
The Cretins at Crapperquotes have taken to hiding the Experts folder away locations impossible to find in Explorer. From your platform, Files/Open data folder will access it.
Add the '/portable' handle to the desktop shortcut forces Empty4 to create the data folder in the location of your chosen Empty4 installation. Right click the desktop shortcut and select Properties. Add '/portable' to the Target field. For example, the Target field for my Blindbot demo:
"C:\Users\piano\Desktop\Trading accounts\Blindbot\terminal.exe" /skipupdate /portable
The '/skipupdate' handle tells Empty4 not to auto-update and is probably irrelevant these days.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.