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
hello guys, anyone knows how can I save the values in arrays, and access them through their index?
I just solved my inquiry and post here for anyone interested.
you can access the values on the array based on the index.
Thank you.
c0d3:
I'm trying to determine direction of zigzag indicator with the icustom command.
This is what i have so far:
ZigZagHigh=iCustom(NULL,0,"ZigZag",MODE_HIGH,0);
ZigZagLow=iCustom(NULL,0,"ZigZag",MODE_LOW,0);
The lines are drawn on the chart, but both ZigZagHigh and ZigZagLow are equal to zero when I run the program.
How would i determine the trend of the ZigZag indicator with the icustom function?
Thanks
this will search 100 previous candles in M5 and print all
for( int i =0;i<100;i++){
result is as follows :
2022.09.29 05:00:36.966 BBK_test1_zigzag EURUSD,M5: value zigzag 4 = 0.96866
2022.09.29 05:00:36.966 BBK_test1_zigzag EURUSD,M5: value zigzag 47 = 0.97379
2022.09.29 05:00:36.966 BBK_test1_zigzag EURUSD,M5: value zigzag 72 = 0.97210
2022.09.29 05:00:36.966 BBK_test1_zigzag EURUSD,M5: value zigzag 80 = 0.97504
Hi there!
So I have taken code previously written here and changed it a little bit so it just identifies the 2 last ZigZags...
So... p1 is the latest one, and it is still redrawing, but p0 is the one before that, and it will change into p1 as soon as the direction of the price changes...
my question is.. what do I need to do so that when a certain action is made, exactly at the time when these two switch places?
Here is the code: