Forum

App for a VPS.

Is there an App I can use on a VPS to restart MT5 in case the VPS shuts down for some reason and then comes back on? Thanks

Pips or Points for Futures EA in MT5

While using an EA for US Futures markets, do we set profit and loss in pips or points? For example the ES moves in increments of 0.25 and bonds move in increments of 1/32. Did not see fraction in MT5 either. Thank you

Adding pips to a trailing stop.

I am trying to add/subtract pips to a trailing stop code depending on buy/sell. Is this correct? if (isNewBar) TrailingStopSet( OP_BUY , Support( 4 * PeriodSeconds (), false , 00 , 00 , true , 1 )) - 5 * myPoint if (isNewBar) TrailingStopSet( OP_BUY , Support( 4 * PeriodSeconds (), false , 00 , 00

Setting Profit Target.

When I try to set a profit Target using the high and low of bars 2 and 3 the EA does not apply it. Is there something wrong with the code? I am basically trying to subtract from the opening price the difference in pips between the high and low. TP = (0 * myPoint) - (MathAbs(High[3] - Low[2])) Thank

Alternating Trades.

If I do not want to trade long after a buy trade and vice versa is there a function in MT4 that does that? Or will somethin like this work too? If LastOpenTrade != Op_Buy Thanks

Functions in MT4.

Are there built in functions for Last Trade was Long or Short? Also a function for Total Number of Trades for the day? And a function to stop for day if Profit is X dollars for day and restart next day? Thank you

Adding pips to a MA.

I am trying to place a trade in a band between a MA and pips added to the MA using the ATR. So say I want to open a trade only between the MA and X pips added to it. Will the code below work? Is ATR always a value returned in pips that can be added to price directly without any type of conversion

Need help with Last Trade Open Price.

This is my function for the last trade opening price. double LastTradePrice() { double result = 0; for(int i = OrdersTotal()-1; i >= 0; i--) { if(!OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) continue; if(OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber && (OrderType() ==

Same EA across several pairs.

Is there a way in MT4 to remove or add the same EA across several charts at a time? have 10 to 14 charts running on a VPS and want to find a way to remove all EAs on the charts at the same time or add an EA on all charts at once. Thank you

Buying or Selling at the 00 levels.

How would I code something like if bid is at 1.1756 then I want to put a buy limit at next 00 level below it or at 1.1700. Same or sell. If market at say 1.1756 then I want to place sell limit at closest above 00 level or 1.1800 for example. Is there a built in function that does something similar