- Search Energy EXCH
-
rangebound replied Aug 11, 2010i is short for index ... index being the position in the array thats being processed
Coding question about "i" variable
-
rangebound replied Aug 6, 2010I posted this sometime ago url
Most efficient way to pass orders to other mt4
-
rangebound replied Aug 3, 2010Close Mt4 Delete the file terminal.ini in the config folder Open Mt4 This should set you straight
tool bar lost in mt4
-
rangebound replied Jul 31, 2010Forget about the return(0) you're right it does nothing ... Your main problem is as I stated earlier. However you can help yourself if you indent your code correctly then you will be able to see the logic clearer. Unfortunately the formatting of ...
Coding EA to check opening price - How do I handle this problem?
-
rangebound replied Jul 31, 2010Hmm loooks like ou might have got there already ... there was about 3 hours between starting ththe above post and actually submitting it!
Coding EA to check opening price - How do I handle this problem?
-
rangebound replied Jul 31, 2010Your code: Ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, StopLossLevel, TakeProfitLevel, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue); if(Ticket > 0) { if (OrderSelect(Ticket, SELECT_BY_TICKET, MODE_TRADES)) { Print("BUY ...
Coding EA to check opening price - How do I handle this problem?
-
rangebound replied Jul 26, 2010TBH I really dont know ... Ive never really used Vhands so I cant comment on its operation. MTFVHands was a simple integration of the period converter logic inside the original Vhands. So apart from getting multiple TF charts on screen the rest ...
VHands Trading Simulator
-
rangebound replied Jul 19, 2010Install a firewall and block the Mt4 app
Tool to disconnect metatrader to test whether it reconnects properly?
-
rangebound replied Jul 14, 2010You're not making yourself very clear here but for the record There isn't really a correlation between the timeframes, if there is one it is relative to the market condition. There are two constants over all timeframes : Price and Time MAs on one ...
Visual Interpretation to Mathematical Values Problem
-
rangebound replied Jul 13, 2010FYI EAs can access all standard MT4 timeframes in both live and strategy test modes. As for viewing muliple timeframes in Strategy tester I posted MTFVhands a while ago on this thread ... post #233 url
VHands Trading Simulator
-
rangebound replied Jul 13, 2010function foo(x: double; y: PChar): PChar; stdcall; var s :ansistring; // reference counted and memory managed strings. begin // our PChar will be copied into an ansistring automatically, // (well, maybe not so automatically in delphi, so try to ...
MT4 DLL Memory Pollution
-
rangebound replied Jul 13, 2010No this is not possible without building a wrapper around the MT4 functions you want to use so ... EG you want to Execute OrderSend by posting a windows message to the MT4 app main window : Use the code given in the zip file and parse the message ...
Passing data from one MT4 client to another
-
rangebound replied Jul 6, 2010GUI windows within DLLs are fine (I.E. Your EAs and Indicators can open windows defined / compiled within your DLL) However there are subtle issues that need to be known .... namely : Whenever you do something like form1 := tform1.create(); IE ...
Creating Metatrader DLLs with Lazarus / Free Pascal
-
rangebound replied Jun 7, 2010Answer as above ... The best way is to code the DLL so that it is thread safe. The easiest way to save memory in your case is to simply have two copies of your DLL (named differently) then change the import statements in your two EA's so that they ...
Creating Metatrader DLLs with Lazarus / Free Pascal
-
rangebound replied May 6, 2010Please bear in mind I was clutching at straws through lack of info trying to think why your DLL was still crashing anyway .... Yes Correct. So your DLL should take some responsibility for what its doing incase of crashes / Bad usage by the calling ...
MT4 DLL Memory Pollution
-
rangebound replied May 4, 2010It doesnt matter where the DLL file resides. The issue is with the instance handle of an application. If you have one instance of MT4 running two EAs that use the same DLL then they share the MT4 Apps instance handle and hence use a single Instance ...
Creating Metatrader DLLs with Lazarus / Free Pascal
-
rangebound replied May 4, 2010You shouldnt need to use critical sections for most DLLs so this points to some other underlying coding issue, which could be one of many things. The best you could do is .... Cut code out of your DLL till you have the most basic DLL that still ...
MT4 DLL Memory Pollution
-
rangebound replied Apr 25, 2010No ... Only the first dimension can be dynamic so you can have int one[]; int two[][6]; int three[][10][20]; etc. Not sure if MT5 enhances this or not.
Dynamic Multidimensional Arrays
-
rangebound replied Apr 21, 2010Ok well spotted. It would be nice to use IndicatorCounted function to determine the number of new bars but after some investigation it reports 1 bar on a normal tick but 2 bars for the first tick of a new bar. Since we may have missed multiple bars ...
Article: Effective usage of Arrays in MQL
-
rangebound replied Mar 15, 2010Check your setting of menu-->tools--> options ---> Charts --- > max bars in chart As I recall the backtest chart (in strategy tester) will always start with ~1000 bars history when you kick it off but it will grow as the test progresses. (As long as ...
More bars on chart during backtest?