Making visible lines within EA code

Post Reply
chimera
Trader
Posts: 13
Joined: Sun Dec 11, 2011 12:39 pm

Making visible lines within EA code

Post by chimera »

As the question suggest, i am looking for the best way to create lines on the chart from within the ea code. This to have visual confirmation, ie with a MA or Pivot system

I have read the mql book, but i am not sure on how to arrange the code

Example, the EA calculates pivot points. How do i create those lines on the chart, the P, S1, R1 . . . .

Examples would be nice, and where do the code go, after start(); ??

Thank very much in advance
Advertising space for sale
dietcoke
Trader
Posts: 162
Joined: Tue Nov 15, 2011 9:59 pm

Re: Making visible lines within EA code

Post by dietcoke »

chimera wrote:As the question suggest, i am looking for the best way to create lines on the chart from within the ea code. This to have visual confirmation, ie with a MA or Pivot system

I have read the mql book, but i am not sure on how to arrange the code

Example, the EA calculates pivot points. How do i create those lines on the chart, the P, S1, R1 . . . .

Examples would be nice, and where do the code go, after start(); ??

Thank very much in advance
Take a look at an EA or indicator that daws lines on the chart. Forex robot does. look through the code for the drawlines function which draws horzontal lines on the chart then have a go on your EA, if you run into problems, post your code and we'll be able to help better
Image
Post Reply

Return to “Coders Hangout”