Nothing but ll's and lh's......down
Quote from jychiu:
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;
------------------------------------------------
Quote from Anekdoten:
I want to wish everyone reading my journal, actives and passives, a great new year, full of happiness, health, companionship and love.
I hope I was able to improve your trading by at least a little bit but in the end it is only you that's in charge of everything especially in the world of trading, a world full of psychological angels and demons.
Best of skill trading in 2008 from your AHG host,
Anek
Quote from suriNotes:
jychiu,
The Tickvalue in TS(EL) is computed as MinMove....
Suri
Quote from jychiu:
Suri,
Thank you for your input, I will try it out (you see this forum is a great place to learn from the seniors!).
As pointed out by babe714 that Martin Pring has a description of 2 and 3 bar reversal in his book, there are very little information on this elsewhere. Will you include this in your new revision of your book ?
Will you be able to give a definition of 3 bar reversal as there are several variations mentioned in this thread, but no one give a definition ? Probably I am asking too much ! But a definition coming from you will carry weight.
Chiu