Just learn a bit on the Easy Language on TradeStation and wrote my first ShowMe code on 3 Bar Reversal.
This is written to have a 'dot' printed on the magic tick on the printbar when the signal is generated. As the tick size for various contract is different, the default is 0.25 (applicable for NQ and ES), you could change it to 0.1 in the 'Magictick' Input parameter for the ER2 contract.
To allow for Modified HA Paintbar to show simultaneously, the signal color can be changed at the 'BuyColor' & 'SellColor' input value as well. The default setting is 'Cyan' and 'Magenta' respectively.
Please see an attched price chart with the signal on the Friday morning NQ 1000 share volume chart (price action showme is set to on as well).
http://img233.imageshack.us/img233/4350/3barreversal1anq071231ey9.jpg
As it is my first code, error might be made or improvement can be made, your feedback is welcome. Tradestation 'alert' feature is programmed, you will need to enable it. When this signal is triggered you will be alerted.
Please see the ELD file attached and code :
--------------------------------------------
Inputs:
BuyColor(Cyan),
SellColor(Magenta),
Magictick(0.25);
If High>High[1] and Low>Low[1] and Low[1]>=Low[2] and Low[2]<=Low[3] and Low[3]<=Low[4] Then
Begin
Plot1(High[1]+Magictick,"buyp",BuyColor);
Alert("3BR Buy");
End;
If Low<Low[1] and High<High[1] and High[1]<=High[2] and High[2]>=High[3] and High[3]>=High[4] Then
Begin
Plot2(Low[1]-Magictick,"sellp",SellColor);
Alert("3BR Sell");
End;
------------------------------------------------