Dejan Krapez
Dejan Krapez
  • Information
2 years
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Friends 1
Dejan Krapez
Added topic 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
Dejan Krapez
Added topic 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) {
Dejan Krapez
Added topic 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      {       
Dejan Krapez
Added topic 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
Dejan Krapez
Added topic Problem with multiplier
Hello, I have problem with multiplier. My code: double getLastOrderTicket() {      datetime open = 0 ;      double orderLots= 0 ;                for (
Dejan Krapez
Added topic 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
Dejan Krapez
Added topic 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
Dejan Krapez
Added topic 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 )
Dejan Krapez
Added topic 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
Dejan Krapez
Added topic 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
Dejan Krapez
Added topic Close last trade with new order
Hi, I have orderSend and OrderClose. OrderSend works, OrderClose closes all trades. I need to close only last trade. So, If I have: I want to close trade in red box. for ( int Counter = 0 ; Counter <= OrdersTotal ()- 1 ; Counter++)    {
Dejan Krapez
Added topic How to Read Data Fast from txt file
hi, is there any way how to read data fast in milliseconds? When I changed txt file, this take random 1-3 second, maybe more time. I have tried OnTimer with millisecond but not working. Is there any solution, how to read fast one data from one to
Dejan Krapez
Added topic Problem with Pending Trade 130 Error Stop Loss when remove history folder
Hi, I have problem. When I start Expert I got 130 error. This error is saved in EURGBP.hst in History folder. If I removed I will get again Error, if not then will always works. This is for all pairs. What is problem here? Regards
Dejan Krapez
Added topic Problem with buy stop order
hello, problem is because I got error 130 for specific currency For BTCUSD works, for BCHUSD not works. gSellOpenPrice = OrderOpenPrice();           gBuyOpenPrice = NormalizeDouble ((gSellOpenPrice +
Dejan Krapez
Added topic OrderType returns wrong parameters and not working
hi, this is my code: for ( int counter = 0 ; counter <= OrdersTotal () - 1 ; counter++)       {          if ( OrderSelect ( OrdersTotal ()- 1 , SELECT_BY_POS))
Dejan Krapez
Added topic Problem with retrieving first row with my code
Hi, my code works correctly, but problem is if I have first row 1, not working. All other rows works, only this row not possible to get. Please help thanks! static bool first = true ;      static int pre_OrdersTotal = 0 ;
Dejan Krapez
Added topic Duplicate save in txt file
Hi, I don't want to save duplicate file in txt file. If I have EURUSD;TYPEORDER=0 Before save I need to check if already exists. This is my code: void SaveStringToFile()   { for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--)
Dejan Krapez
Added topic How can I count the same data
Hello, this is data exported to excel: This is code for retrieved data:     int h = FileOpen ( "OrdersReport.csv" , FILE_CSV | FILE_READ , '~' );    if (h== 0 )   Comment ( "File " + "OrdersReport.csv" + " not
Dejan Krapez
Added topic Problem with reading and write data to txt
Hello, I want to transfer data from demo to live account. This can be done with txt. I need small data for that, but problem is because I have tried to use read and write to specific folder but my code not works. How to do this? //--- open the file
Dejan Krapez
Added topic Close all trades if first trade not finish in next 60 minutes
Hi, how can I close trade if one trade not close in next 60 minutes? So not reach TP? Regards
12