Codes

MAGNA RAPAX for MetaTrader 4

The Great Hunter, is a Holy Grail attempt, by using a mix of trend following indicators, volatility filters and martingale system (optional)

Forum

How to import tick data and what format should it be to work in MT4 strategy tester?

I have tick historical data, each ~15 GB, which is alot, and i wanted to import them into MT4,but for some reason it doesnt want to import it. The format of the tick database is: Timestamp,Bid price,Ask price,Bid volume,Ask volume 20120112 01:02:10:100,1.24233,1.24271,1.1,1.2 20120213

Need moneymanagement LOT size formula based on SL and Account Risk!

Hi, i please need a code/ formula which resizes the lot size based on Account Risk % calculated by including the STOPLOSS, and taking in consideration that my account is in EUR. What i have is this: extern double RISK= 1 ; //1% RISK double LOT; LOT = NormalizeDouble ( AccountEquity ()*RISK/ 10000

Jump to past date of a chart, with mql4 CODE

How to jump to a past date on the chart with an MQL4 code. I want this to be done by my indicator, with MQL4 code, for example if i write into my indicator to jump to 2010.1.1, then the indicator should move the chart to that date. Is it possible, if yes, then please tell me how :)

CRB chart source code / pseudocode

Hi, can anyone share with me a working source code to build CONSTANT RANGE BAR charts ? Pseudocode is also accepted, i have no clue how to do it, and I cant find any tutorial on the internet which would explain how CRB charts are constructed. I dont want RENKO CHART, there is a difference, I want

MODE_MARGINREQUIRED expanded version

Hi , can somebody please tell me the expanded version of the function , that is how it is calculated: MarketInfo(Symbol(),MODE_MARGINREQUIRED) So that i can rebuild it myself and check it

Draw horizontal line on separate window

void init() { ..... IndicatorShortName( "AH5" ); ..... } if ( OrdersTotal ()> 0 ) { OrderSelect ( 0 ,SELECT_BY_POS,MODE_TRADES); ObjectCreate ( ChartWindowFind ( 0 , "AH5" ), "LINE1" , OBJ_HLINE , 0 ,Time[ 0 ],OrderOpenPrice()); ObjectSet ( "LINE1" , OBJPROP_PRICE1,OrderOpenPrice() ); ObjectSet

Indicator cannot access other pairs hist data/ charts not refreshing

I have an indicator which looks at 15 different pairs at the same time to find a trend. It works perfectly on H1 timeframe, however on any other timeframe it is blank.I suppose it is because there is no historical data on that pair downloaded. But why it doesnt automatically download it from the

I get error 4024 when i run my EA

I just finished making an EA run it on demo account and suddently when it initializes it shows error 4024 for no reason. I`ve checked the code, it has no bugs or compile errors, and it didnt do anything yet.Either the MT4 is bugged here or am i missing something, i read the documentation it says

Is it viable to use "return"?

Here is a snipet from my trailstop function , here i select the orders to be trailed if (! OrderSelect (i, SELECT_BY_POS,MODE_TRADES)){ Comment ( ">> Order select failed, error # " , GetLastError () ); Print ( ">> Order select failed, error # " , GetLastError

Does "Bid" work correctly in Strategy Tester?

Does the Bid variable work correctly in strategy tester , if so then what value it returns. And does it return the same value as Close[0] in Strategy Tester, or not