I am coming up short in using the drawLineRelative parameters in my code. Any help would be appreciated. I believe I am confused with the nBarCounter as I would like to be able to have the lines stay on the chart permanently each time the condition is met, but currently, they only show on a most recent event and then drop off the next time it occurs. Here is what I have so far:
if(getBarState() == BARSTATE_NEWBAR) {
nBarCounter = 0;
if //my conditions
{
drawLineRelative(0, low(0)-.5,8,low(0)
-.5,PS_SOLID,2,Color.red,"Entry"+nBarCounter);
}
Thank you.
if(getBarState() == BARSTATE_NEWBAR) {
nBarCounter = 0;
if //my conditions
{
drawLineRelative(0, low(0)-.5,8,low(0)
-.5,PS_SOLID,2,Color.red,"Entry"+nBarCounter);
}
Thank you.
Comment