- Search Energy EXCH
-
RaptorUK replied Jan 3, 2013They are scripts not EAs. The slippage figure used is not calculated correctly, int = 3 * 0.01 will type cast to 0 . . . probably doesn't matter, I don't think slippage applies to pending orders.
Multiple pending order scripts
-
RaptorUK replied Jan 3, 2013If it's so simple you can do it yourself. If you can't code how do you know it is simple ?
I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 3, 2013Yes. The way you have used iHighest always gets the bar number for the highest close value during the last 5 H1 bars . . . regardless of the timeframe of the chart, but then you use that bar number with Close[] . . . Close[] uses the current ...
I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 3, 2013Glad you learned something, that was the point
Bar1Time will have an initial value of 0 when it is declared, this works just fine the first time that start() is called . . . Initialisation of variables "Any variable is initialized with ...I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 2, 2013But this is a little pointless, all it does is draw the line and then update it for each tick . . . and the update is the same value because the value has been set during init() . . . this updates the line for each new bar. #property ...
I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 2, 2013But it's a bit naughty because for each tick it creates an Object that already exists, so you should actually do this . . . #property indicator_chart_window double hc5; // globally declared int init() { hc5 = ...
I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 2, 2013This works . . . #property indicator_chart_window double hc5; // globally declared int init() { hc5 = Close[iHighest(Symbol(),PERIOD_H1,MODE_CLOSE,5,1)]; } int start() { ObjectCreate("hc5", OBJ_HLINE, 0, Time[1], hc5); ObjectSet("hc5", ...
I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 2, 2013I didn't actually try it . . . I have now, I should have mentioned that the Object name must be a string . . . ObjectCreate("hc5", OBJ_HLINE, 0, Time[1], hc5); ObjectSet("hc5", OBJPROP_STYLE, STYLE_SOLID);
I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 2, 2013OK, some general comments first: don't use ObjectsDeleteAll(), it's lazy, if anyone else tries your indicator on their chart it will not only remove your Object but any of their Objects too, by all means delete your Objects in deinit(), but just ...
I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 2, 2013No. If the code is as you have posted it . . . inside the first loop the first condition checks the Indicators buffer 0 vs buffer 3 for the last 500 bars, if it finds that buffer 0 is less than buffer 3 for any of those 500 bars it exits the loop, ...
Translating some code into Pseudo code for a laymen?
-
RaptorUK replied Jan 2, 2013Your code looks OK to me, you need to use these values when you ObjectCreate() or ObjectSet() the lines . . . show the rest of your code please.
I will code your EAs and Indicators for no charge
-
RaptorUK replied Jan 2, 2013If you just want to look at a single M1 bar then that is simple, but will not do what you are now talking about, what if the move starts part way through a bar and runs into the next, then your 11 minute should be half of one M1 bar and half of the ...
Pip Count Indicator?
-
RaptorUK replied Jan 1, 2013Just an observation, I have just seen GBPUSD move 11 pips in one tick . . .
Pip Count Indicator?
-
RaptorUK replied Jan 1, 2013The Chart Grab is the image . . . because this stuff is working with ticks you can't see what happened after the event, unless you can utilise and replay tick data . . . so when the tick based event happens I record the event by automatically taking ...
Pip Count Indicator?
-
RaptorUK replied Dec 31, 2012There is an article at the mql4 Forum about using a Mutex to prevent Trade Context Busy, have a read and you should get the idea of how a Mutex works. http://articles.mql4.com/141
Multiple Charts in MT4
-
RaptorUK replied Dec 31, 2012You can't do it unless you download actual tick data and either pay to use the tick data in the Strategy Tester or find some other way . . . what you currently see in the Strategy Tester are made up ticks not real ones, the Strategy Tester creates ...
Tick charts in past
-
RaptorUK replied Dec 31, 2012I'm currently working on something like this, my initial Indicator tracked move in price during a specified time period, for example 5 seconds, and if the move was greater than a configurable size a chart grab was taken, it's not as simple as first ...
Pip Count Indicator?
-
RaptorUK replied Dec 31, 2012OK, I had a small change to make . . .
Adjustable opening horizontal line for each market?
-
RaptorUK replied Dec 30, 2012You need to code a Mutex so your EAs don't try to do the same thing at the same time . . .
Multiple Charts in MT4