Postnote. MetaEditor insisted on Time being an Array so I entered ......Time)+1) and this does produce the correct data. Hopefully regardless of timeframe but that doesn't matter because all my calculations are using H1. So all is sorted now. Very grateful mladen,
Aaaah, I see the problem. It is the html hypertext suppressing some code characters! What I entered above is not what I saw when I clicked "submit", So what worked was ...Time "[" i "]" ) +1).
Re: Coding Help
422Newton51 wrote: Sun Jul 09, 2017 9:45 pm Postnote. MetaEditor insisted on Time being an Array so I entered ......Time)+1) and this does produce the correct data. Hopefully regardless of timeframe but that doesn't matter because all my calculations are using H1. So all is sorted now. Very grateful mladen,
Aaaah, I see the problem. It is the html hypertext suppressing some code characters! What I entered above is not what I saw when I clicked "submit", So what worked was ...Time "[" i "]" ) +1).
Yep, that is right
When I enter that it gets replaced by html, To avoid, better that we use the code display (like this :
Code: Select all
iOpen(NULL,PERIOD_D1,iBarShift(NULL,PERIOD_D1,Time[i])+1)
Re: Coding Help
424When there is a selection box on an indicator showing 'alertOnCurrent':
Should this mean that the signal on screen will show on the current candle at the open of the following candle?
Thanks
TEAMTRADER
Should this mean that the signal on screen will show on the current candle at the open of the following candle?
Thanks
TEAMTRADER
Re: Coding Help
425Nothing to do with signalsTEAMTRADER wrote: Tue Jul 11, 2017 6:45 pm When there is a selection box on an indicator showing 'alertOnCurrent':
Should this mean that the signal on screen will show on the current candle at the open of the following candle?
Thanks
TEAMTRADER
Alerts are alerts
"Signals" are "signals"
They can be triggered on a completely different things (depending on the code). Setting for alerts never change what "signals" do
Re: Coding Help
426I would like to express my gratitude to mladen for his patience (with me) and help recently. I have learned and mastered an entirely new thing (the iBarShift) which is now proving very useful to me. Thankyou so much mladen.
Re: Coding Help
428Here is a MTF version
Attachments
Indicator is just a tool.
Use it only if it can benefit you. Leave it if you don't know how to use it optimally.
Use it only if it can benefit you. Leave it if you don't know how to use it optimally.
Re: Coding Help
429Is it possible and what code should i use to perform this action.Thank you
Re: Coding Help
430Use a buffer that stores the state of the breaktradre wrote: Sat Jul 15, 2017 4:05 pm resistance.JPG
hello forum members,i have a problem with the indicator am trying to code.I want to get rid of all these arrows and the remaining arrow to be arrow 1.Here are my rules:if the candles breaks through previous resistance and a new resistance is formed like in the picture an arrow should be drawn on the new resistance.
Is it possible and what code should i use to perform this action.Thank you