Hi, I found a lot of code for consecutive loss but not works. Also I try only to get all from history trades. Always I got 0. What code I need to get all losses? int consecutiveLosses = 0 ; // Global variable to track consecutive losses ulong lastDealTicket = 0 ; // To track the last
Hi. Is there any source code how to show POI snd more valid POI with FVG or IMBALANCE? Im not finding any source code for this. Regards
Hi, I want only update Count: If I have 1, to 2 and other string I don't want to change... this is my code: void SaveInfoForSymbols( int ticketId, int orderType, int count) { string sym = "data//" + _Symbol + "_info_" + ( string )MagicNumber + ".txt" ; int
Hello, First return 0 and then return 2 int CountTrades() { int icnt, itotal, retval; retval= 0 ; itotal= OrdersTotal (); for (icnt= 0 ;icnt<itotal;icnt++) // for loop { OrderSelect (icnt, SELECT_BY_POS, MODE_TRADES); // check for opened position, symbol & MagicNumber if
Hello, EURUSD, GBPUSD working with BUY STOP OR SELL STOP but in USDJPY not working... My code: gRecoveryZonePriceSell = NormalizeDouble ((Ask/Bid/OrderOpenPrice()- 200 * _Point ), _Digits ); gSellStopTicket = OrderSend ( _Symbol , OP_SELLSTOP, 0.02 , gRecoveryZonePriceSell
Hello, I have problem with multiplier. My code: double getLastOrderTicket() { datetime open = 0 ; double orderLots= 0 ; for ( int i = OrdersTotal () - 1 ; i >= 0 ; i--) { if ( OrderSelect (i, SELECT_BY_POS)) if (OrderSymbol() == Symbol () && OrderMagicNumber()
Hi, when use OrderClose, always close also if not reach specific price. So must close when reach -/+100 points depends of direction. My code: double ClosePrice = NormalizeDouble (MarketInfo( _Symbol ,MODE_BID)- 100 *MarketInfo( _Symbol ,MODE_POINT),( int )MarketInfo( _Symbol ,MODE_DIGITS));
Hi, I used char in symbol but I got value=0, If use string then I got combile Error: 'arr' - structures or classes containing objects are not allowed testtoarray.mq4 68 33 struct prices { char symbol; // symbol double price; // price }; //--- global variables int
Hi, in my txt file I have: Direction:BUY;Magic Number:432;Price:1.03654 Direction:SELL;Magic Number:44234232;Price:1.05654 Direction:BUY;Magic Number:43233;Price:1.07654 if (Direction==SELL && MagicNumber== 44234232) { Alert( Price:1.05654 ) } I don't have idea how to do this from reading txt file
Hi, I got common error order buy 2.00 EURUSD opening at market sl: .... Why I got this message? I have in common folder one file TXT and every second READ this file and when is new trade then WRITE in file. My trades order maybe in 1-2 hour. So where is problem? Regartds