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 think your trouble is in you haven't reset val1 and val2. So once you've found the high and last low you need to reset them:
Hopefully that will help.I thought that if the first if(statement) was true, then it would have restarted the start() again and reset from the top of the code and thus reset val1 and val2 again
Well, the way I was thinking about it was - if(first statement) true then prints, and then moves to text the next if(second) likely false then goes back to the top of the start again and resets val1 and val2
I'm getting the correct prints and values but just prints continuously.
Now that I think of it I really never figured this out for any if(statement) even the simplest of EMA crosses produces continuous printings
I'll test your code you posted but I would be surprised if I added print statements to print those variables and it did not also print continuously
I'll try it out later today
Thanks
I'm sure I have to do something with currentTime and iTime to get this fixed, I'll have to review it some more.
Seems like there should already be an ABCD scheme in the code base to learn from but this seems to be something that is not available except for based on ZigZag which I am reviewing now to see if this gives me any clues. But again this is also an indicator
Anyhow if I add && macd or something it only prints them once, which is really throwing me off
How about this:
This only prints once when adding
and
So I'm getting a little closer naw I can evaluate it some more.
Thanks for the help all, this was a giant help because it game me the ideas to fix this and expanded my knowledge a bit more about resetting things too.
I have to keep that in my back pocket
Thanks
I'm not getting the problem most of the time. It seems that it only happens when there is a upper and lower fractal in the same bar which happens in uncertain markets sometimes. The only way around this is only run the calculation once a bar so:
That should mean that it won't get false traded on fractals going both ways.
The way I'm doing it now will be more complicated because I still have to add iCustom indicators along side of my code logic; and all the bells and whistles instead of using an already working iCustomer indicator as my code logic
Anyhow thanks again great news for the day.
I'm not getting the problem most of the time. It seems that it only happens when there is a upper and lower fractal in the same bar which happens in uncertain markets sometimes. The only way around this is only run the calculation once a bar so:
That should mean that it won't get false traded on fractals going both ways.
I need to study this some more. This may be where I'm loosing most of my codes due to the continuous print statements when testing.
I'm sure there is other ways around it and yet I do plan to also create the indicator for this and draw the lines from AtoB etc.
I'll study some more
Maybe someone can make good use of it, I'm sure it can be revised better by a guru
Anyhow it's printing what I want and I added some extern values for fibo levels so the users can select which levels they might want
My first code contribution to the forums LOL
Anyone have a better way to occomplish this task I already anticipate doubling down on code due to adding iCustom indicators to show what my code is doing but this means sort of double coding for an array buffer etc. and then using iCustom
Anyhow here is what I got
With my limited knowledge and experience this is all I could come up with for an ABCD scheme
I'll work on it more to allow user to change A's and B's to levels that do not breach previous A's and B's in order to truly stay within a trend etc.
Hope someone can use this or perhaps can add to it with some better ideas
Now I'll work on candle patterns and indicators to add to it or something, and popup alerts, maybe sounds and some popup video might be fun
Thanks for for the help all.
Доброго времени суток уважаемые форумчане!
Меня зовут Герман, мне 23 года, я являюсь трейдером компании "Инстафорекс"
Помогите в поиске нужного скрипта! Скрипт нужен для сетки отложенных ордеров.
Доброго времени суток уважаемые форумчане!
Меня зовут Герман, мне 23 года, я являюсь трейдером компании "Инстафорекс"
Помогите в поиске нужного скрипта! Скрипт нужен для сетки отложенных ордеров.
And Please post in English
Happy trading