Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

Firefly

Members
  • Content Count

    17
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    london
  • Country
    United Kingdom
  • Gender
    Male
  • Interests
    riding

Trading Information

  • Vendor
    No
  1. hi, ive tried changing the name but for some reason it doesnt seem to like it. print("date - ",ELDateToString(date),"ATR",plot1:3:3,"X",plot2); still plots ATR as Avg1 anyway Avg1 refers to (atr(length3)*value42) X is 10. for example, atr is 0.0014 = 14 pips. X is in pips therefore ATR value does need to be multiplied by 10000 there are no other parts to this so i dont understand where i can be going wrong.
  2. attached a screen shot of the values and the corresponding tradestation report. values are bottom left and corresponding date is on the right. Those results are for an X value of 10 pips.
  3. any chance u could come into the chat room please?
  4. Hi, ok ive done a print statement like you suggested ( thanks for showin me how to do that btw) and there are a couple values just below where i set my X value. all the other values are greater. (these results were run from 2003.) i still dont understand why its giving me these weird results. could u please put it in layman term? ive attached a pic of the tradestation report. thanks again Firefly
  5. Aye ok I'll give that a shot.gonna hit the sack now though but it will b the first thing I do tomorrow.cheers again for your help.
  6. how will it b greater? I was trying to set a lower threshold on the atr value.so if it was going to b below 20 then 20 will be the value for the breakeven OTHERWISE it will b X times the ATR.
  7. this is just the breakeven part of the code.the prob is that the tradestation report should show a run up of at least X before the breakeven is initiated.in some cases it's not and that's what I'm confussed by. Thanks for replyin
  8. Morning, was hoping someone might be able to shed some light on the following. here is the code, value1 is 10,000 and x is 20pips if ((AvgTrueRange(Length))*value1) >= x then begin SetStopPosition; SetBreakEven((AvgTrueRange(Length))*value42); end; if ((AvgTrueRange(Length))*value1) < x then begin SetStopPosition; SetBreakEven(x); end; unfortunately the above code is creating errors. Tradestations report is showing no run up or DD and seems to be exiting the trade at the same point its getting in. am i being stupid and missing something rather stupid? if so please enlighten me! Rgds Firefly
  9. "If ( OpenPositionProfit >= 25 ) And ( Target1 = false ) Then Begin" i dont understand the "target1 = false" statement. ive had a look in the easylanguage dictionary but it said its reserved for futures use. Whats the equivalent for forex? + what happens if the openpositionprofit becomes less than 25, will the stop still exist if the openpositionprofit had been greater than 25 during the trade? cheers
  10. hi, first id like to say thanks to Tams for supplying this code, its been something i have been thinking about for a few days. i do have one question, is it possible to calculate the hight differences between sucessive HH and LL? i have tried but thus far i just have a nice straight line at 0 would appreciate any help on this Firefly
  11. alright, just wonderin if u ever got round to testin it, n howd it turn out. "here's a volatility trading system http://www.breakoutfutures.com/Newsl...letter1102.htm p.s. I haven't tested it yet." cheers
  12. My question is regarding the importance of T testing. Below is a link i found with a T table in and i was wondering if i could ask you guys some questions regarding an exampe i found in the encyclopedia of trading? http://www.sjsu.edu/faculty/gerstman/StatPrimer/t-table.pdf info from example: evaluating an optimised system on out of sample data. No of trades = 47 Mean Avg Trade = 974.47 Standard Dev = each trade - sample mean Sample Standard Deviation = SQRT( sum((Standard Dev)^2)/46) = 6091.1 Expected Deviation from Mean = 6091.1/SQRT(47) = 888.48 T-Stastic = 1.0968 this is the point where my understanding becomes a little hazy. Using the above link and running down the Yaxis to between 40 and 60 trades (47), and then running accross to between 1.05 and 1.303 (1.0968). im lost as to what both the upper and lower Xaxis are used for. the book talks about the following: "The smaller the number, the more likely the system performed the way it did for reasons other than chance. In this instance, the probability was 0.1392; i.e., if a system with a true (population) profit of $0 was repeatedly tested on independent samples, only about 14% of the time would it show a profit as high as that actually observed." am i correct in assuming that as long as the value for the T-Statistic is less than the value stated on the T-test then its safe to assume the system hasnt been over optimised to the point of excessive curve fitting prior to running the out of sample data? before the chapter ends, the books states the following as well: "Finally, a considence interval on the probability of winning is estimated. In the example, there were 16 wins in a sample of 47 trades, which yielded a percentage of wins equal to 0.3404. Using a particular inverse of the cumulative binomial distribution, upper 99% and lower 99% boundaries are calculated. There is a 99% probability that the percentage of wins in the population as a whole is between 0.1702 and 0.5319. In Excel, the CRITBINOM function may be used in the calculation of confidence intervals on percentages." i dont understand this id like to thank those of you who take the time to reply to this for your time and if you dont have sufficient time to answer id appreciate it if you could at least point me in the direction of some further reading on this subject, entry level. (never covered alot of stats at school) Rgds Firefly
  13. used the chat room a few time already and its been a great help. Thanks
  14. dont know anything about this moving average thing ur talking about so cant help there... sorry Inputs: inputa, inputb, inputc; Variables: vara, varb, varc; Condition1: jtHMAavg1[1] > jtHMAavg2[1] Condition2: jtHMAavg1[1] < jtHMAavg2[1] If condition1 then begin; Buy ("buy long") 100 Cts contracts next bar at market; End; If condition2 then begin; sell ("sell short") 100 Cts contracts next bar at market; End; SetProfitTarget(1000); SetStopLoss( 100); that SHOULD be right but i havent checked it in easy language as im just going out but it should give u an idea of how it possibly should look. hope that helps
  15. thanks for your reply but i cant get it to work. im looking to compare the price of "sell2" to the current price + or - a certain amount. if this is then true id like to close one of my positions. the definition of exit price i got said it returned the value of the last exit.... if u placed[1] at the end and that it could be used to compute the last 10 prices. im not sure thats what i was looking for. any other ideas??
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.