0

Based on my observation over last few years, I have come to realize that many correct trade entry related issues can be solved by two custom functions. One, "NOGAP" - if I can code a function that doesn't take any price gap opening into consideration, then applying that on indicator would give good results when trend continues in the same direction of gap opening, i.e. uptrend following gap up opening and downtrend following gap down opening.

The second custom function is "Start over a new Session". Applying this function on indicator would be ideal to start on the price of the first bar of each day. It would give good results when price reverses in the opposite direction following a gap opening, i.e. downtrend following gap up opening and uptrend following a gap down opening.

How can I code such function in pine script?

I have made a thorough observation and trying to figure out the syntax logic to code such functions.

0 Answers0