Do these codes close the stochastik indicator when the difference between the 2 lines is too large?
The code provided is an example code on how to properly create an indicator and how to get the indicator's value. That is, this is a training code for an Expert Advisor that does ONLY two things: it shows how to create an indicator correctly and how to get the indicator value.
Simple trailing - works on every tick, works both for a losing position and for a profitable position. Works with the current character and only for positions with 'Magic number'
I am learning mql5. I have developed a module that validates the inputs and numerous flags that confirm it, or not.
The situation I am in is very summed up in the attached code: An entry signal defined by an MA indicator and an entry confirmed by an oscillator.
In the presented case I have 2 oscillators and in the strategy tester I can test the 2 separately or both together.
What I want is to be able to execute both individually from the strategy simulator, in such a way that with a single execution of the simulator I could obtain individual results, whose results I could extract with Print, for example.
Yes, Fractals can contain '0.0' or 'EMPTY_VALUE'. Example:
Code: 'iFractals.mq5'
Result:
Hi thanks, it's been very helpful, If I wanted fractal date added to it as well ? I tried CopyTime() but gives me wrong time value which does not correspond to fractal value.
An example of get values from the iStochastic indicator
Code: iStochastic get value.mq5
Do not forget the rules: create the indicator handle ONCE in OnInit, use CopyBuffer to get the data.
Result:
Do these codes close the stochastik indicator when the difference between the 2 lines is too large?
Do these codes close the stochastik indicator when the difference between the 2 lines is too large?
The code provided is an example code on how to properly create an indicator and how to get the indicator's value. That is, this is a training code for an Expert Advisor that does ONLY two things: it shows how to create an indicator correctly and how to get the indicator value.
Very Simple Intersection iMA Open Position
(code 'Very Simple Intersection iMA Open Position.mq5')
The example shows how:
Updated script - printout 'ENUM_TIMEFRAMES'
Timeframe in MT5 is a bit field. Printing out 'HEX' values gives an idea of how timeframes are encoded (See timeframe coding from H1 and higher).
Result:
24 -> HEX -> '18'
Simple Trailing
Code: 'Simple Trailing.mq5'
Simple trailing - works on every tick, works both for a losing position and for a profitable position. Works with the current character and only for positions with 'Magic number'
Simple advisor. Always one position. The position is opened with Stop Loss and Take Profit. There are no defenses
Code: 'Stop Loss Take Profit EA.mq5'
Hey, I've been trying to code a simple support and resistance script and I'm having trouble with the following code
I can't figure out what I'm doing wrong, but it doesn't return true.
Yes, Fractals can contain '0.0' or 'EMPTY_VALUE'. Example:
Code: 'iFractals.mq5'
Result: