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
I'll think about it some more tomorrow, and see if I can figure this out.
1 for True, or 0 for False right ? <---- this is right, BUT
I'll think about it some more tomorrow, and see if I can figure this out.
2011.09.28 16:43:30 sup_res EURUSD,M5: i=411 faster=-0.0005
2011.09.28 16:43:30 sup_res EURUSD,M5: v1[411]= 1.3522 if2011.09.28 16:43:30 sup_res EURUSD,M5: v2[414]= 1.3495 if
2011.09.28 16:43:30 sup_res EURUSD,M5: i=414 slower=-0.0007
2011.09.28 16:43:30 sup_res EURUSD,M5: i=414 faster=-0.0005
2011.09.28 16:43:30 sup_res EURUSD,M5: v1[414]= 1.3527 if
2011.09.28 16:43:30 sup_res EURUSD,M5: i=417 slower=-0.0007
2011.09.28 16:43:30 sup_res EURUSD,M5: i=417 faster=-0.0005
2011.09.28 16:43:30 sup_res EURUSD,M5: v1[417]= 1.3528 if
2011.09.28 16:43:30 sup_res EURUSD,M5: v2[419]= 1.3506 if
2011.09.28 16:43:30 sup_res EURUSD,M5: i=420 slower=-0.0007
2011.09.28 16:43:30 sup_res EURUSD,M5: i=420 faster=-0.0005
2011.09.28 16:43:30 sup_res EURUSD,M5: v1[420]= 1.3523 if
2011.09.28 16:43:30 sup_res EURUSD,M5: i=426 slower=-0.0007
2011.09.28 16:43:30 sup_res EURUSD,M5: i=426 faster=-0.0005
2011.09.28 16:43:30 sup_res EURUSD,M5: v1[426]= 1.3522 if
2011.09.28 16:43:30 sup_res EURUSD,M5: v2[429]= 1.3481 if
Prints this when running the indicatator
But the very same code for an EA does not print the array
2011.09.28 16:43:48 2011.01.02 18:42 Agent86_5min EURUSD,M5: i=227 faster=-0.0015
2011.09.28 16:43:48 2011.01.02 18:42 Agent86_5min EURUSD,M5: v1[227]= 0 if
2011.09.28 16:43:48 2011.01.02 18:42 Agent86_5min EURUSD,M5: v2[230]= 0 if
2011.09.28 16:43:48 2011.01.02 18:42 Agent86_5min EURUSD,M5: i=232 slower=-0.0013
2011.09.28 16:43:48 2011.01.02 18:42 Agent86_5min EURUSD,M5: i=232 faster=-0.0015
2011.09.28 16:43:48 2011.01.02 18:42 Agent86_5min EURUSD,M5: v1[232]= 0 if
2011.09.28 16:43:47 2011.01.02 18:28 Agent86_5min EURUSD,M5: i=825 faster=-0.0015
2011.09.28 16:43:47 2011.01.02 18:28 Agent86_5min EURUSD,M5: v1[825]= 0 if
2011.09.28 16:43:47 2011.01.02 18:28 Agent86_5min EURUSD,M5: i=829 slower=-0.0008
2011.09.28 16:43:47 2011.01.02 18:28 Agent86_5min EURUSD,M5: i=829 faster=-0.0015
2011.09.28 16:43:47 2011.01.02 18:28 Agent86_5min EURUSD,M5: v1[829]= 0 if
2011.09.28 16:43:47 2011.01.02 18:28 Agent86_5min EURUSD,M5: i=832 slower=-0.0008
2011.09.28 16:43:47 2011.01.02 18:28 Agent86_5min EURUSD,M5: i=832 faster=-0.0015
2011.09.28 16:43:47 2011.01.02 18:28 Agent86_5min EURUSD,M5: v1[832]= 0 if
2011.09.28 16:43:46 2011.01.02 18:13 Agent86_5min EURUSD,M5: i=240 faster=-0.0011
2011.09.28 16:43:46 2011.01.02 18:13 Agent86_5min EURUSD,M5: v1[240]= 0 if
2011.09.28 16:43:46 2011.01.02 18:13 Agent86_5min EURUSD,M5: v2[241]= 0 if
2011.09.28 16:43:46 2011.01.02 18:13 Agent86_5min EURUSD,M5: v2[245]= 0 if
2011.09.28 16:43:46 2011.01.02 18:13 Agent86_5min EURUSD,M5: i=245 slower=-0.0003
2011.09.28 16:43:46 2011.01.02 18:13 Agent86_5min EURUSD,M5: i=245 faster=-0.0011
2011.09.28 16:43:46 2011.01.02 18:13 Agent86_5min EURUSD,M5: v1[245]= 0 if
2011.09.28 16:43:46 2011.01.02 18:13 Agent86_5min EURUSD,M5: v2[249]= 0 if
I don't know why it's resorting back to not printing the array again, because it's the same exact code as the indicator
Anyhow, I'll work on the indicator for now.
The values appear to be various from 4 digit fractional numbers to negative 4 digit fractional numbers
If I change the iMACD shift to i, then faster and slower = 0 all the time
I tried inserting if(faster > slower) into various areas of the code just to play with the idea. Normally these ideas would work in an EA but not in an indicator
IE if(v1 > 0 && faster > slower)
but this causes the indicator to disappear.
I don't know why it's resorting back to not printing the array again, because it's the same exact code as the indicatorYou can't use Indicator Buffers in an EA . . this explains it : https://www.mql5.com/en/articles/1456
faster and slower are the same values all throughout the loop and the changing values of i, is that what you want and need ?
You can't use Indicator Buffers in an EA . . this explains it : https://www.mql5.com/en/articles/1456
faster and slower are the same values all throughout the loop and the changing values of i, is that what you want and need ?
Ok thanks for the link. I forgot about this. It's a lot of info for me to recall. Noobiness handicap LOL.
So anyhow, I was trying to make the high fractals only form when another condition occurs such as iMACD crosses, or EMA crosses or some other indicator crosses.
So that the fractals will only show on the indicator when all the conditions are met.
Then I would work on the low fractals with similar conditions as well.
I will likely try to add even more complex conditions too just to learn how to do it. I mean it may not be iFractals, but some other indicator with various conditions coupled with other indicators as well.
Design is a major problem for me because I'm not experienced so I have not seen many of the tactics or theories used in general code. So I can only learn by reading other peoples codes for now to see how they work and try to understand what they have done and learn from it.
Anyhow I'll keep working on it, thanks
Try this change
So the variable has to be declared within the loop also.
Ok this should be fun to play around with now, thanks everyone
I prefer instantiating just once, all looping vrbs, out of the loop, first. If you declare them inside the loop, for every iteration, the compiler creates new variable. even though they look the same, actually they are not.
I prefer instantiating just once, all looping vrbs, out of the loop, first. If you declare them inside the loop, for every iteration, the compiler creates new variable. even though they look the same, actually they are not.