hello, I have a problem in receiving data when beacktesting in MT4. I was trying to run the simple EA: void OnTick () { double low[]; Print ( CopyLow ( _Symbol , PERIOD_M1 , 3000 , 30 ,low)); } When I run it on back test I always get -1 (error), but when I run it at live I get 30 (success)
Hi, Im trying to use constructor over load but Ive faced a problem. Ive created this class: class test2 { protected : string s; public : test2( string s); test2( string s, int i); string getS() { return s;};
Hello, Im trying to automate a function that close position, if tomorrow is not a trading day in as specific symbol. I managed to check if tomorrow is saturday/sunday but I don't know how to check if tomorrow is a holiday for example. How can I check if tomorrow is a trading day? Thank you, Yu
Hello, I developed an EA and tested it on historical data using the Strategy Tester . When I checked it with "every tick", it made a big profit, with low draw down. But when I checked it with "every tick based on real ticks" it was a losing strategy, with very high drawdown. How can it be, such huge
Hello, I want to buy a computer to make optimization faster, I read open threads about it, but I want somthing updated for these days. What do you recommend? i7? i9? 8GB, 16 GB, 32 GB of RAM? what are the importent parts? I guess GPU and screen resolution are useless for optimization... Do you have
Hello, My broker use only MT4, but I use MT5 and all my code in mql5. is it possible to make a connection between my mql5 code and my broker MT4 platform
Hello, I came across the function " get pointer ", and I didn't understand why do we need it in mql5. I know that if I make an object like that: obj* foo= new obj(); foo is pointer, so if I print/use/return foo I get the pointer to the object of "obj". Then why do I need the function get pointer
hello, I use the styler(Ctrl,) when writing code in the meta editor, and every time it adds automatically above every function , this: //+------------------------------------------------------------------+ //| |
Hello, Im trying to get my last deal profit , that means that if I lose I get a negative number and if I win I get positive number. I wrote the simple code: HistorySelectByPosition (last position ticket); Print ( HistoryDealGetDouble ( HistoryDealGetTicket ( 0 ), DEAL_PROFIT )); but all I get is
Hello, Im trying to get the time of high and low points in my day to determined which one happend first. How can I do it? I know I can get the high and low rates of let's say yesterday by this code: MqlRates rates[ 2 ]; CopyRates (_Symbol,PERIOD_D1, 0 , 2 ,rates); Print (rates[ 0 ].high,rates[ 0