Forum

MT4 and Raspberry PI b+

Hello, does anyone know of a way to get MT4 working on raspberry pi b+ to test an EA out live (on demo) and if it is even possible? Cheers, Sam

Help with OrderProfit()

void ExitConditions() { for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--) { if ( OrderSelect (i,SELECT_BY_POS)) { int ticket=OrderTicket(); if (OrderMagicNumber()==MagicNumber && OrderSymbol()== Symbol ()) { if (OrderType()==OP_BUY)

Order History

I need to find out whether the last closed order was a short or long position for a specific symbol, is this possible? If so please could you point me in the right direction with some of the functions I will need Thanks

How to check time?

Hi, I need to check the time is between midnight and 12:05 (GMT +2) in an IF statement. How could I do this?? Thanks, sam

Trailing stop?

How can I check to see if the price has increased since the last tick so EA knows when to change the stoploss