Reply

Draw a horizontal line of a price level

2 replies

beniko

Subscriber, bbp_participant, community, 31 replies.

Visit profile

7 years ago #115399

Hello,
 
What custom action – command do I have to use for an EA to draw a horizontal line at a specific price level defined by a variable, which is also updated when the price changes?
 
For example in the Then section I could have:
 
Assign Variable:
Var1 = Hight[1]
 
Custom Action:
Command: [draw line at price Var1]
 
Kind Regards,
Ben

0

beniko

Subscriber, bbp_participant, community, 31 replies.

Visit profile

7 years ago #138553

I figured that I can draw lines by using:

ObjectCreate("Highest", OBJ_HLINE, 0, Time[0], Highest);
ObjectCreate("Lowest", OBJ_HLINE, 0, Time[0], Lowest);

However it seems that they fail to update. The Highest and Lowest are price variables.

0

beniko

Subscriber, bbp_participant, community, 31 replies.

Visit profile

7 years ago #138554

Figured that out as well by using
 
ObjectMove(0, "Highest", 0, 0, Highest);
ObjectMove(0, "Lowest", 0, 0, Lowest);

0

Viewing 2 replies - 1 through 2 (of 2 total)