Forum

IF Then code for MT4

I need some help. I want to setup a If then type of situation. I'm trying to setup a situation where I get a signal from a indicator to buy or sell then I want another set of conditions met before a trade is open regardless of how many candles it takes to happen. I know how to write a if situation

Setting up MT4 Alerts on a Windows Server 2012

Hello, Does anyone know or can direct me to a tutorial on how to setup MT4 alerts on a windows server 2012. I'm using a gmx acount and it works fine when I'm not using a vps but as soon as I try on my vps it doesn't seem to connect. Any help would be appreciated. Thanks

Limit Buy & Sell Open orders

Hello, I recently bought an EA that Hedge's and that can open lots of buy and sell orders at the same time. For example on EURUSD there can be 50 orders opened between buy and sell. Obviously I don't have the source code but is it possible to have a EA created that could limit the amount of buy and

How to Stop Consecutive Loss Orders

Hi, I created my own EA but I wanted to know if there was a way to code the EA, so it there are 2 losses in a row it will not trade to trade in the same direction again until an oppsite order is executed. For instance my EA gives a sell signal & it gets stopped out. The EA will Open the Sell signal

Two vertical lines in Metaeditor

Hi, I have a quick question. What do the 2 vertical lines mean in metaeditor. Are they just like the "&&: symbol. For example: if((s1[i] < Low[i] && s2[i] < Low[i] && s3[i] < Low[i] && s4[i + 1] > High[i + 1] && s4[i] < Low[i]) || (s1[i] < Low[i] && s2[i] < Low[i] && s3[i + 1] > High[i + 1] && s3[i]

ADX crossing indicator w/ Alerts - Alerts Repeat Continuously

Can anyone help me with the below indicator. The alert repeats Continuously. I would just like it to alert me once. Any help would be appreciated