Forum

MQL4 FileWrite not working on live chart

Hello! I created a EA that sends values to a CSV file, everything worked well in the Strategy Test mode but won't do anything when applied to a live chart. Is there anyone that knows what I did wrong? I appreciate any kind of help, thank you! Source code inserted below: void OnTick () { static

Specific number of Orders per Currency Pair

Hello, i have added a function that allows a Specific number of Trades per Currency pair (marked yellow), it all worked fine but then i realized that 3 other functions stopped working (marked white). i then saw that it is the return function that makes it happen. I tried to replace the return

Open Signal

Good evening! i was trying to fix a open signal inside my EA. My Problem: I would like the MyMovingAverage to be a open signal so that when MyMovingAverage<Bid (which will be my Uptrend) gives a Uptrend Signal and my EA executes Buy Trades only each time the conditions are met. But it currently only