How to enter date of expiry in the settings?
-
i tried entering YEAR, MONTH AND DATE! But it is not detecting the time period of expiry!
*i made a mistake of entering year like this> 13. Thats why it was not working!
Thanks
-
The format is YY:MM:DD, for example 13:07:08, which means 08 august 2013
-
Hi,
thanks! Please guide me how to make it work only on a particular account.Thanks!
-
Condition -> Account Information -> Account number.
After that condition you can place "Terminate EA" block.
I never tested that, but it should work.
-
__Condition -> Account Information -> Account number.
After that condition you can place "Terminate EA" block.
I never tested that, but it should work.[/quote:qp53vaxd]
hi
Thanks,i opened the condition and entered account number. After that I placed "terminate EA".
I tested and it is not working. i don't see the account number inside mql4 file. on "Init" i placed Condition(3rd block) and Terminate EA(4th Block, but i dont know how to connect the blocks.Please tell me where is the mistak i made. I am sure I can do this with FxDreema!
thanks
......
Ac~SELL-BAR.mq4 -
You are trying to do very very very basic things. The idea is to check if the account number is equal or different than some number, but you compare the account number with itself. When asking if A==A, the answer is always Yes.
And you didn't connected this Condition with nothing else. In fxDreema when a block is not connected, it is the same as it is not there, this block is not included to the final EA.
You just need to play more with this. fxDreema makes programming easier and faster, but because it exists to build strategies with it, you must be able to build those strategies in the head first - to know what conditions to apply and what actions to take.
In your case, you only need to check if the account number is different than a number, written from you inside the project. Account number is a number, so it should be compared with a number. And then, if the account number is different than the number written from you - go to terminate the EA.
I will recommend to you again to open MetaEditor and start learning how to program. At least to understand the basics like "if", "for", "while", functions, variables and constants. I think this is actually fun, so just do it

Start with:
int init() { Alert("Starting the EA"); } int start() { Alert("Tick"); } int deinit() { Alert("Unloading the EA..."); }init(), start() and deinit() are the 3 main MQL4 functions, and everything starts with them.