Hello! I need help and information. I want to draw Tredlines in my chart, I want to draw them by hand or with a button that allows me with the mouse to select the point of origin and the other point to create it; making the button is not a problem, I know how to do my problem is the block of drawing Tredlines, how to use it and how to select the Tredline with the mouse. Can anybody help me. Thanks a lot.
Draw Tredline
-
Hello! I need help and information. I want to draw Tredlines in my chart, I want to draw them by hand or with a button that allows me with the mouse to select the point of origin and the other point to create it; making the button is not a problem, I know how to do my problem is the block of drawing Tredlines, how to use it and how to select the Tredline with the mouse. Can anybody help me. Thanks a lot.
-
@xyon126 Use an indicator drawing trendlines, it is highly suggested not to use an EA to do what an indicator does. Very hard on computer resources for starters.
-
@jsauter86 Agreed. Sadly, fxDreema is very innefficient at drawing trend lines. Do it manually and give them a name that can be the used in you buttons.
-
@jsauter86 , @l-andorrà I need to draw a tredline with a button but I do not know how the tredline works to indicate the starting coordinate and the final coordinate indicating it with the mouse and at the same time giving it a specific name so that neither indicators nor draw them manually without first pressing the button.
-
@xyon126 You need to specify two points is space and time:
The rectangle on top is definint the moment and place in which the second point defining the trend line is positioned (candle 0's close by default) This will always be the closest point to the right of the chart.
The rectangle below it is doing the same for the first point defining the trend line (candle 10's close by default). This point will always be the farthest point to the left of the chart.
-
@l-andorrà Hello @l-andorrà, if I wanted to mark the points with the mouse block option, what should I modify there and how should the mouse blocks be?
-
@xyon126 Well, honestly I never tried something like that. I have no idea how to do it. Is that even possible?
-
@l-andorrà Hello @l-andorrà! about if it is possible I think so, I think that variables will be needed, one for each point (initial and final) and that with some block of the "mouse" where it allows you to select a point or vertex that each mouse click is directed to a variable and with those two variables introduce them to the Tredline block, my problem is these three points:
1st Mouse block to select the point.
2º A comment that warns you to select by clicking with the mouse each of the points.
3rd Option of the Block to create the Tredline with the points obtained and saved in two variables. -
@xyon126 Your first point is a tough one. I'm not sure that is possible right now with teh standard fxDeema blocks. I guess that would require custom code.