TRO_control paintbar for QT
TRO, I am sorry to post this here. I did not see this TRO for QT in this forum but i did in another older thread elsewhere. So i thought i can ask you here. I have no programming or even computer knowlege but i have created few very simple paitbars in the QT. So, please help.
I have copied the text of the code from other forum here:
<PAINTBAR>
<ID>NCMPWS</ID>
<NAME>TROControlMinor</NAME>
<RULE><EXPR>if Bar Close=( Day High + Day Low) * 0.5 set color to Yellow</EXPR></RULE>
<RULE><EXPR>if Bar Close>( Day High + Day Low) * 0.5 set color to Blue</EXPR></RULE>
<RULE><EXPR>if Bar Close<( Day High + Day Low) * .0.5 set color to Red</EXPR></RULE>
</PAINTBAR>
<PAINTBAR>
<ID>JKBMIA</ID>
<NAME>TROControlMajor</NAME>
<RULE><EXPR>if Bar Close=( Day High[1] + Day Low[1]) * 0.5 set color to Yellow</EXPR></RULE>
<RULE><EXPR>if Bar Close>( Day High[1] + Day Low[1]) * 0.5 set color to Blue</EXPR></RULE>
<RULE><EXPR>if Bar Close<( Day High[1] + Day Low[1]) * 0.5 set color to Red</EXPR></RULE>
</PAINTBAR>
QUESTION:
Are these two separate rules and go in two separate paintbars or in one paitbar?
After few tries, this is what i added to the rules part of the paintbar editor
If bar close = (day high + day low ) * 0.5 set color to yellow.
If bar close > (day high + day low) * 0.5 set color to blue
If bar close < (day high + day low) * 0.5 set color to Red.
The editor accepted that and saved it as a paintbar Minor.
When I go to enter the second part of the paintbar in a second separate paintbar, i tried typing the day high [1], it does not accept it, i tried day high 1, it did not accept. I wonder what [1] stand for? Is it for bar 1, should it be bar high 1 or instead of day high?
thanks.
I
TRO, I am sorry to post this here. I did not see this TRO for QT in this forum but i did in another older thread elsewhere. So i thought i can ask you here. I have no programming or even computer knowlege but i have created few very simple paitbars in the QT. So, please help.
I have copied the text of the code from other forum here:
<PAINTBAR>
<ID>NCMPWS</ID>
<NAME>TROControlMinor</NAME>
<RULE><EXPR>if Bar Close=( Day High + Day Low) * 0.5 set color to Yellow</EXPR></RULE>
<RULE><EXPR>if Bar Close>( Day High + Day Low) * 0.5 set color to Blue</EXPR></RULE>
<RULE><EXPR>if Bar Close<( Day High + Day Low) * .0.5 set color to Red</EXPR></RULE>
</PAINTBAR>
<PAINTBAR>
<ID>JKBMIA</ID>
<NAME>TROControlMajor</NAME>
<RULE><EXPR>if Bar Close=( Day High[1] + Day Low[1]) * 0.5 set color to Yellow</EXPR></RULE>
<RULE><EXPR>if Bar Close>( Day High[1] + Day Low[1]) * 0.5 set color to Blue</EXPR></RULE>
<RULE><EXPR>if Bar Close<( Day High[1] + Day Low[1]) * 0.5 set color to Red</EXPR></RULE>
</PAINTBAR>
QUESTION:
Are these two separate rules and go in two separate paintbars or in one paitbar?
After few tries, this is what i added to the rules part of the paintbar editor
If bar close = (day high + day low ) * 0.5 set color to yellow.
If bar close > (day high + day low) * 0.5 set color to blue
If bar close < (day high + day low) * 0.5 set color to Red.
The editor accepted that and saved it as a paintbar Minor.
When I go to enter the second part of the paintbar in a second separate paintbar, i tried typing the day high [1], it does not accept it, i tried day high 1, it did not accept. I wonder what [1] stand for? Is it for bar 1, should it be bar high 1 or instead of day high?
thanks.
I