Support Board
Date/Time: Fri, 07 Feb 2025 18:20:07 +0000
Post From: COLOR BAR BASED ON ALERT CONDITION ALERT SYNTAX STRUCTURE QUESTION
[2022-06-16 23:44:00] |
jmftattoo - Posts: 97 |
I have made a color bar alert and am using it currently but am wondering how to write it in a shorter, cleaner manner. If anyone could lend a hand that would be helpful. alert syntax is as follows. "= V > MAX (V[-1], V[-1], V[-2], V[-3], V[-4], V[-5], V[-6], V[-7], V[-8], V[-9], V[-10], V[-11], V[-12], V[-13], V[-14], V[-15], V[-16], V[-17], V[-18], V[-19], V[-20],V[-21], V[-22], V[-23], V[-24], V[-25], V[-26], V[-27], V[-28], V[-29], V[-30], V[-31], V[-32], V[-33], V[-34], V[-35], V[-36], V[-37], V[-38], V[-39], V[-40], V[-41],V[-42], V[-43], V[-44], V[-45], V[-46], V[-47], V[-48], V[-49], V[-50], V[-51], V[-52], V[-53], V[-54], V[-55], V[-56], V[-57], V[-58], V[-59], V[-60]) " Obviously this is long and drawn out, I am trying to be shown the highest volume FP in the last 60 bars. this is working, would like to have it streamlined, not sure how to though. when I simply write =V>MAX (V[-60]) I do not get the same alerts showing as the above formula. |