Lord Odin / Publications
Forum
Fetching prices from a different timeframe
Hello Community, I would like to know how does fetching prices from a different time-frame actually work. If I am currently back-testing on Daily Period, and I used iLow ( NULL , PERIOD_H1, 0 ) to compare with Low [ 0 ], which bar's low will it actually fetch (from which hour) to compare with the
Trouble modifying SL to follow Trailing Stop
Hello Community, Consider the following function: bool trailStop( double trailingSta, double trailingSto) { double tSL; RefreshRates(); for ( int i = OrdersTotal ()- 1 ; i >= 0 ; i--) { if (! OrderSelect (i,SELECT_BY_POS,MODE_TRADES)){ continue ;
Close previous orders conditionally on 1H and M5 charts
Hello Community, What I need is basically the following: 1) If current ask goes above previous high, close all SELL orders . Only allowed to close on upcoming bars. 2) If current bid falls below previous low, close all BUY orders. Only allowed to close on upcoming bars. I have tried closing these
How does iMA() on other charts work?
Hello Community, I would like to add a buy condition to my Trend following EA, that would be executed by ticks on the EUR/USD chart , but ONLY if the iMA() of some other symbol meets my requirements. I know that iMA() can take whatever symbol you specify for it and that I should run the EA on the
Need a little help understanding a few things
Hello Community, Excuse my semi-idiotic questions, but I would like some help with a few questions regarding EA in MQL4 and its working structure, as I am new to this whole thing: 1) Will an Expert Advisor be able to work efficiently on a live account and be executed ON EACH TICK no matter how
View a detailed report on the chart window
Hello Community, Consider I have a lot of history files for many clients that were also generated as "Detailed Report" and saved as *.htm. The question is, for better and faster analysis of these histories, is there any way I could VIEW the transactions made on the Chart window? As in I would like
Jump to next bar if SL is hit
Hello Community, Sorry if this question is an idiotic one, but I am rather new to this whole MQL thing. I am coding a small expert advisor, and would like the following to be achieved: If any of my buy orders, hits its stop loss , I would like to stop all operations and jump to next bar, ( I am
MT4 Taking forever to backtest a simple EA
Hello Community, I have just started coding my own EA and have stumbled upon this problem: Whenever I try to back-test my EA, It takes a LOT of time to complete, to a point where I just manually stop it after 2 hours and notice that barely 5% of it was finished. Now I know that complex EAs may