Forum

How to set up my account to receive confirmation code from Telegram

Hi all : I want to set up my account security, but I can't receive the 4 digits confirmation code from SMS text. And I think there is another option, Telegram. But I could not select it, is anyone could help me to fix this? Should I need to set something before it? Thanks

Help to correct my ordersend in sequence

double ordertotalb_0() //countung buy orders { double totalb=0; int i; for(i=OrdersTotal()-1; i>=0; i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) { if(OrderSymbol()==Symbol() && OrderType()==OP_BUY) { if(OrderMagicNumber()==MagicNumRevB) { totalb+=OrderLots(); } } } } return(totalb); } double

How to automatically re-calculate the total profit from total order

Hello all, I'm writing a EA similar to Martingale. But I encounter a problem while I want to re-calculate the "take profit" for all of my current orders. Here are the processes, 1. I set up the target total profit would be 10 USD at beginning before any order is placed. 2. Now, the 3rd order is

How to select the largest lot in the pool?

Hi everyone, I just try to select the order ticket of largest lot order from my current trading pool, buying and selling. From some of sample just write like following, but as my understanding, it just return the random ticket rather than largest one. Is anyone could advise me this is right or not