Forum

POI

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

How to update txt file only specific text

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

Problem with retrieving open trades Count

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

Problem with USDJPY

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

Problem with multiplier

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()

Problem with OrderClose

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));

Array struct problem with string value?

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

How to parse retrieving data from text file

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

Problem with Common Error

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

Error 130 - when too close to the opening price

Hi, How can I use if statement if error 130 , then skip OrderSend, and I got warning error or try again in next 5 mins? Regards, Dejan