Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 11:37:12 +0000



Post From: Moving Average Crossover

[2014-02-03 13:53:32]
Sawtooth - Posts: 4000
To color both lines the same color based on the faster MA:

1) Add the Color Bar Based On Above/Below Study study
-Set the Based On to the MA study
-Set the Input Data to Avg1
-Set the Study Reference to the MA study and Avg2
-Set the Mode to Color Above/Below
-Set the Output Input Data Values Instead of 1.0 to Yes
-Set the Draw Style to Line

2) Add another Color Bar Based On Above/Below Study study
-Set the Based On to the MA study
-Set the Input Data to Avg2
-Set the Study Reference to the MA study and Avg1
-Set the Mode to Color Above/Below
-Set the Output Input Data Values Instead of 1.0 to Yes
-Set the Draw Style to Line
-Reverse the red and green colors (red on left, green on right)

#1 colors the faster MA, #2 colors the slower MA.
This assumes you are using the Moving Averages study's Avg1 and Avg2, and that Avg1 is the faster MA and Avg2 is the slower MA.