You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Wow little harsh reception. I am BOTHERING to learn code. Its how I learn I will play with existing code and see what the effects of my changes are. Its called experimenting and is used in daily life! I don't want you to code it for me. I'm asking specific advice but thought I would past the full code to get the bigger picture. I apologise for pissing on your chips!
Back to task.
I have got this working for the buy.
How do you combine multiple logics? For example bool fracdown? I need it to break out in. In VB you would use "then" after the logic true.
I understand an EA builder is not the way to go but at least it creates a basic code so I can manipulate it, just how I learn I suppose.
Its basically meant to open a buy if CCI is below -100 and fractal appears. I thought it would be easy but its getting difficult very fast ha.
It is a way to learn, but you need to start with something simpler.
To be able to modify code you have to be able to understand what the code is doing.
What are ZIGZAGUP and ZIGZAGDOWN?
Their values are not being changed in the loop, so they will stay the same value as they were before implementing the loop.
Hi thanks for your reply. ZIGZAG is an Icustom indicator. Hence why I pasted the full code for the bigger picture.
What im trying to do is what i thought is easy. Basically the ZIGZAG indicator lags behind between 1 & 5 previous bars. I wanted to capture when it does this and make a trade from the signal.
The loop cycles through those previous 5 bars. If an arrow appears for example up. Im basically after a GOTO scenario if that exists in MQL4
Fracup = true then execute the buy line command.
Fracdown = trued then execute the sell line command
the fractal appears on bar 3
so to have the signal without any repaint :
or
It is needed to know the EMPTY VALUE, checking it into the code of the indicator
following what you want to do , here is the expert, it should open buy order :
Hi,
My last statement is the correct one. Buffer zero is the UP arrow. If it has a value > 0 FracUp = True it should check this upto 5 bars back I have pasted what at least compiles but i'm not sure if the logic is correct..
it work, it should be sell order instead of buy order,
Now you get the base, ust develop it
look at this image to undeerstand better what the expert does :
https://www.mql5.com/en/charts/4181438/eurusd-h1-fxpro-financial-services
you welcome,
you have to get the signal on bar 3 with fractal