I'm new with easylanguage, and in using the example below as a learning aid, I have finally been able get the following to compile successfully after umpteen tries and lot's of reading. However, I can't seem to figure out how to write the line of code to get the function to plot an arrow on the chart at the low when the two conditions are met.
Condition1 = the low is < the lowest (low, 3) of 1 bar ago;
Condition2 = the close is > the close of 1 bar ago;
If Condition1 and Condition2 Then *???* (low);
If someone here would be so kind, what do I need to add/edit in line 3 to get an arrow to plot at the low when both conditions are met, and what code is needed to describe the marking?
Thanks in advance for guidance you may be able to forward.
billco
Plotting marker when conditions are met?
- Stanley Miller
- Posts: 556
- Joined: 26 Jul 2005
- Has thanked: 3 times
Power Language allows you to draw arrows. There are several reserved words for this: arw_new, arw_setcolor, arw_setstyle, arw_setsize, arw_settextbgcolor, arw_settextcolor, arw_settext. Here is the sample code for your convenience:
Code: Select all
var: id(0);
Condition1 = the low is < the lowest (low, 3) of 1 bar ago;
Condition2 = the close is > the close of 1 bar ago;
If Condition1 and Condition2 Then begin
id = arw_new(d,t,l,false);
arw_setcolor(id,green );
arw_setstyle(id, 10);
arw_setsize(id, 3);
arw_settextbgcolor(id, green);
arw_settextcolor(id, black);
arw_settext(id, "Long Breakout");
end;
plot1(close);
- Stanley Miller
- Posts: 556
- Joined: 26 Jul 2005
- Has thanked: 3 times
MultiCharts' PowerLanguage is fully compatible with TS EasyLanguage. So you can review original EasyLanguage tutorials to learn more about basic conceptions and syntax options. Please check our Online Tutorials section for further details:
http://tssupport.com/support/tutorials/
http://tssupport.com/support/tutorials/
-
- Posts: 50
- Joined: 11 Nov 2005
- Contact:
- Stanley Miller
- Posts: 556
- Joined: 26 Jul 2005
- Has thanked: 3 times