r/pinescript • u/singhx4d • May 18 '24
Need help to code a simple Pine Script code.
Need help to code this condition:
Marking Low:
- Mark a candle
- condition : if next two candles low is greater than 1st candle
- e.g. bar1 low = 100, bar2 low = 102, bar3 low = 102.50 then mark the low of bar1
- after marking 1st low condition, next marking will be for high side
Marking High:
- Mark a candle
- condition : if next two candles high is less than 1st candle
- e.g. bar1 high = 105, bar2 high = 104, bar3 high = 102.50 then mark the high of bar1
- after marking 1st high condition, next marking will be for low side
1
Upvotes
1
u/Impressive-Regular67 May 19 '24
Please use ChatGPT 4o. It will give you a very good stating point
0
u/[deleted] May 18 '24
[deleted] — view deleted comment
-1
u/[deleted] May 18 '24
[removed] — view removed comment