logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
nasdaqtrader  
#1 Posted : Friday, June 9, 2006 1:57:08 PM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)
In the Expert Advisor the following formula is there. Trends Folder: Bullish: lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; bc:=If(new,Cross(H, Peak(2,plot,1)), Cross(H, Peak(1,plot,1))); sc:=If(new,Cross(Trough(2,plot,1),L), Cross(Trough(1,plot,1),L)); BarsSince(bc)<BarsSince(sc) Bearish: lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; bc:=If(new,Cross(H, Peak(2,plot,1)), Cross(H, Peak(1,plot,1))); sc:=If(new,Cross(Trough(2,plot,1),L), Cross(Trough(1,plot,1),L)); BarsSince(bc)>BarsSince(sc) How would I create the above Swing Trading Indicator in the Explorer to get my daily Trading Signals also inlude it in the Indicator also in the sytem Test. Hope someone can help me with this project. I'm not a programmer oriented. nasdaqtrader.
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
hayseed  
#2 Posted : Friday, June 9, 2006 4:32:06 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey nasdaq..... if you put your bullish trend in column a and bearish in column b, that will sort everything into bullish or bearish camps...... if you create two indicators, i used your codes and named them fml("s b") for the bullish and fml("s s") for the bearish, that enables to find the new hits, bullish or bearish by using ref, -1......h [code:1:ee28326d1c]Exploration notes Col A: lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; bc:=If(new,Cross(H, Peak(2,plot,1)), Cross(H, Peak(1,plot,1))); sc:=If(new,Cross(Trough(2,plot,1),L), Cross(Trough(1,plot,1),L)); BarsSince(bc)<BarsSince(sc) Col B: lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; bc:=If(new,Cross(H, Peak(2,plot,1)), Cross(H, Peak(1,plot,1))); sc:=If(new,Cross(Trough(2,plot,1),L), Cross(Trough(1,plot,1),L)); BarsSince(bc)>BarsSince(sc) Col C: Fml("s b")=1 AND Ref(Fml("s b"),-1)=0 Col D: Fml("s s")=1 AND Ref(Fml("s s"),-1)=0 Filter colA OR colB OR colC OR colD Filter enabled Yes Periodicity Daily Records required 1000 [/code:1:ee28326d1c]
hayseed  
#3 Posted : Friday, June 9, 2006 4:42:42 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

clari on fml("s b") ..... the indicator names are s b and s s..... the fml("s b") is just proper wording for the exploration....... i'm sure you knew that but some might not.....h [code:1:2ded6f53a1] s b {swing buy} lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; bc:=If(new,Cross(H, Peak(2,plot,1)), Cross(H, Peak(1,plot,1))); sc:=If(new,Cross(Trough(2,plot,1),L), Cross(Trough(1,plot,1),L)); BarsSince(bc)<BarsSince(sc)[/code:1:2ded6f53a1] [code:1:2ded6f53a1]s s {swing sell} lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; bc:=If(new,Cross(H, Peak(2,plot,1)), Cross(H, Peak(1,plot,1))); sc:=If(new,Cross(Trough(2,plot,1),L), Cross(Trough(1,plot,1),L)); BarsSince(bc)>BarsSince(sc)[/code:1:2ded6f53a1]
nasdaqtrader  
#4 Posted : Friday, June 9, 2006 5:29:53 PM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)
Thank You Very Much Hayseed. I really appreciate all your help I may have two more that I may need help with Would really appreciate if you can help me. Thank You again Nasdaqtarder
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
hayseed  
#5 Posted : Friday, June 9, 2006 6:47:12 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey nasdaq...... anytime...... just holler...... h
Jose  
#6 Posted : Friday, June 9, 2006 11:01:53 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
nasdaqtrader wrote:
How would I create the above Swing Trading Indicator in the Explorer to get my daily Trading Signals...
Zig(), Peak(), PeakBars(), Trough(), TroughBars() - are all hindsight-based functions and not designed for real-time trading signals. A signal that appears today, may or may not be there tomorrow. Beware. jose '-)
nasdaqtrader  
#7 Posted : Monday, June 12, 2006 2:47:38 PM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)
Thank You Hayseed once again Could I inclued the Swing Trading Indicator into System Testing (Trading System) also can I have a Expert Commentary? In the Expert Commentary I would like to have the following included. Market Position: Long or Short Entry Date 12/19/05 Entry Price 35.75 Profit/Loss 10.50 Stop Loss Price Technical Stop Thank you for your continued support. Nasdaqtrader
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
hayseed  
#8 Posted : Monday, June 12, 2006 4:56:10 PM(UTC)
hayseed

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/7/2005(UTC)
Posts: 1,346

hey nasdaq...... yes you could put it into a system for testing..... the 's b' could be the buy and 's s' be the sell..... anything can be put into the commentary section of an expert.... if the text was to be conditional, you'd use the 'write if' function..... that way the text is written only if your conditions are met..... if its non-condtional just place it in the commentary ..... its a good place to hold notes and research that might apply or be useful in understanding the expert..... it is worth noting, many people feel the use of trough, peak and such carries high element of doubt.... such as jose mentioned earlier..... i have yet to give the functions the proper amount of thought, nor have i looked into the math behind them..... so i'm completely without an opinon ...... h
nasdaqtrader  
#9 Posted : Monday, June 12, 2006 5:12:41 PM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)
Hayseed, I hope you can hrlp me to createa expert advisor Commentary off the Swing Trading Indicator. Once Again thank you for your time and effort. Nasdaq
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
minnamor  
#10 Posted : Tuesday, June 13, 2006 4:48:40 AM(UTC)
minnamor

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 126
Location: Italy

The above formulae yield the same signals as the system once sold under the name The Ultimate Swing Trading Indicator or 1-2-3 signal by a Mark Crisp of www.stressfreetrading.com and www.swingtradingindicator.com (not functioning now). This guy provided only an expert in his package. The contributions above complete the system with indicators, explorations and system tester. The trading rules of the author were as follows: 1. a signal is valid if H>Mov(C,20,E) for longs and L<Mov(C,20,E) for shorts, 2. with a valid signal, place a stop order above/below the signal bar high/low with validity 2 days, 3. if entered a position, exits based on 3 rules: a) initial stop loss of 12% from entry level, b) a sell signal (no validity rules applicable) and a low below the signal bar low (for longs; no 2 day time limit) and c) price below/above a fractal of level 1, i.e. upF:=H<Ref(H,-1) AND Ref(H,-1)>Ref(H,-2); downF:=L>Ref(L,-1) AND Ref(L,-1)<Ref(L,-2); F1:=ValueWhen(1,upF,Ref(H,-1)); F2:=ValueWhen(1,downF,Ref(L,-1)). Regards.
nasdaqtrader  
#11 Posted : Tuesday, June 13, 2006 11:45:52 AM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)
Thank you for your response minnamor. Yes this is from Mark Crisp, and it only had a Expert only. Do you have any of his other systems like the Weekly MSTS by Mark Crsip from stressfreetrading.com? Is the formula you supply me for the Expert Commentary? Thank you for your help Nasdaqtrader
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
nasdaqtrader  
#12 Posted : Tuesday, June 13, 2006 11:49:09 AM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)
Thank you for your quick response Jose. Jose, Could we make this a real time trading signal? and if yes How would we create this for real time trading. Thank you for all your help. Nasdaqtrader
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
minnamor  
#13 Posted : Tuesday, June 13, 2006 1:28:36 PM(UTC)
minnamor

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 126
Location: Italy

Nasdaq trader, I do not own other systems from Mark Crisp. Thanks for your nice contribution to the forum.
nasdaqtrader  
#14 Posted : Tuesday, June 13, 2006 3:50:20 PM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)
Minnamor the response from yesterday from you is that a formula to create a expert commentary? Once again Thank you for all your help. Nasdaqtrader
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
minnamor  
#15 Posted : Tuesday, June 13, 2006 3:59:29 PM(UTC)
minnamor

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 126
Location: Italy

nasdaqtrader, no, it was only by way of clarification. I have never came around to become proficient in writing expert commentaries. Regards.
nasdaqtrader  
#16 Posted : Tuesday, June 13, 2006 4:44:33 PM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)
Hayseed, When you get a chance you think you might be able to help me get the swing trading indicator as a trading system and also a Expert Commentary Once again thank you for your continous support. Nasdaqtrader
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
wabbit  
#17 Posted : Tuesday, June 13, 2006 4:56:21 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
nasdaq.... If you're in no rush I could help you out in two weeks when my exams have finished. Until then, why not use the MS User Manual and the built in examples to generate your own expert, and we can refine it later. wabbit :D
minnamor  
#18 Posted : Tuesday, June 13, 2006 4:59:11 PM(UTC)
minnamor

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 4/27/2005(UTC)
Posts: 126
Location: Italy

nasdaqtrader, how about this: buy order: lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; setup:=If(new,Cross(H, Peak(2,plot,1)),Cross(H, Peak(1,plot,1))) and H>Mov(C,20,E) ; H>(Valuewhen(1,setup,H)+0.1) and BarsSince(setup)<=2; order type - stop: lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; setup:=If(new,Cross(H, Peak(2,plot,1)),Cross(H, Peak(1,plot,1))) and H>Mov(C,20,E) ; max(O,Valuewhen(1,setup,H)+0.1) Sell order: lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; upF:=H<Ref(H,-1) AND Ref(H,-1)>Ref(H,-2); downF:=L>Ref(L,-1) AND Ref(L,-1)<Ref(L,-2); F1:=ValueWhen(1,upF,Ref(H,-1)); F2:=ValueWhen(1,downF,Ref(L,-1)); setup:=If(new,Cross(Trough(2,plot,1),L),Cross(Trough(1,plot,1),L)) ; ref(setup,-1) or L<F2 order type - stop: lb:=TroughBars(1,L,.1); hb:=PeakBars(1,H,.1); plot:=Zig(If(lb<hb, L, H ),1,%); new:=PeakBars(1,plot,1)=0 OR TroughBars(1,plot,1)=0; upF:=H<Ref(H,-1) AND Ref(H,-1)>Ref(H,-2); downF:=L>Ref(L,-1) AND Ref(L,-1)<Ref(L,-2); F1:=ValueWhen(1,upF,Ref(H,-1)); F2:=ValueWhen(1,downF,Ref(L,-1)); setup:=If(new,Cross(Trough(2,plot,1),L),Cross(Trough(1,plot,1),L)) ; If(ref(setup,-1),O,min(O,F2)) For shorts just modify as appropriate. Give it a try and let me know if it is accurate enough (had no time to test it at length). Some code here and there is redundant but is included so as to make adaptation to shorts easier. Any suggestions on possible improvements would be appreciated. Regards.
nasdaqtrader  
#19 Posted : Tuesday, June 13, 2006 5:06:42 PM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)
Wabbit Thank you for your response. I really appreciated it when your exams are over in 2 weeks you can help me. I'm in no rush. I not computer programer material. Thanks again Good Luck on your Exam Looking forward to your support and help with this. nasdaqtrader
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
nasdaqtrader  
#20 Posted : Thursday, March 1, 2007 9:34:34 AM(UTC)
nasdaqtrader

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 2/2/2005(UTC)
Posts: 307

Thanks: 7 times
Was thanked: 3 time(s) in 3 post(s)

Hayseed,

When I put the following formulas in the indicator builder, I get the following message

Indicator: Error message appears as follows No indicator names in the indicator builder contain this text. Fml("s b")=1 AND Ref(Fml("s b"),-1)=0
Exploration: Error message appears as follows No indicator names in the indicator builder contain this text. Fml("s b")=1 AND Ref(Fml("s b"),-1)=0
Hope you can help me with this problem.
And which formula do I put in the sytem tester?
Thank you
nasdaqtrader
Regards, Frank Koenig Trade Like a Pro Trend is your Friend
Users browsing this topic
Guest (Hidden)
2 Pages12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.