Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 01:53:05 +0000



Post From: How to create an COLOR BAR BASED UPON ALERT CONDITION for multiple bars following a signal

[2023-02-07 18:58:40]
User29194 - Posts: 5
I have an indicator that gives a Long and Short signal. I would like all bars after a long signal to be one color until the Short signal is fired. The bars would then be a different color to indicate a short.

I am using multiple indicators and the above signal may fire before all conditions are met. So I need a way to have that signal be persistent until toggled the other direction.

One option would be that the alert is looking back over a range of bars.

Example
Bar 1 - get a signal but no other confluences
Bar 2 - I get a MA confluence
Bar 3 - I get a RSI confluence At this point I want to trigger a long since Condition 1,2 and 3 are met.


I know how to handle the MA and RSI as they are values that change every bar.

I need to be able to carry that signal bar value forward to several bars. It is not a # value. It is a True or False value and only shows up on the bar that generated that signal.
Date Time Of Last Edit: 2023-02-07 19:43:49
imagesc support.PNG / V - Attached On 2023-02-07 18:57:42 UTC - Size: 30.95 KB - 130 views
imagesc support 2.PNG / V - Attached On 2023-02-07 19:41:28 UTC - Size: 42.75 KB - 115 views