♥ 0 |
Hello, I have some thinkscript code that is looking at the value of a momentum oscillator across several time frames and will return a “1” if conditions are right to take a long entry and some other code that returns a “1” when time is right to exit. I would like to plot a Up Arrow on the plot when the condition first hits long entry criteria and another for the exit. Issue is the code returns 1 for long on multiple bars as those bars are also ideal for entry and I get multiple arrows…I would however like to see the arrow for only the first bar where this was true and then no longer see it until the exit criteria is met. Same for the exit criteria. Is there a way to code this so once I get a long condition it does not plot an up arrow until the exit condition is met? RESOLVED
Marked as spam
|
Please log in to post questions.