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.

johni

Members
  • Content Count

    7
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • Country
    Singapore

Trading Information

  • Vendor
    No
  1. UB, Would you tweak the code to account for interval bars? This code is like lacking a little tweak and don't seems to warrant pay coding service Have code them up in MS but want to transfer them to ES for some carification
  2. UB Thank you for your excellent post Notice when there is a interval bar with stoch>30 and next bar stoch<30 the second signal is not registered Changing the (barnumber +1 or bar number+2) would solve some of the signal More than 3 signals with interval bars stoch above 30 would render the subsequent signal not registered How you make the code (barnumber +1 or bar number+2) dynamic to account for unknown interval bars stoch > 30? The third and fourth bars should have signal but due to second bar >30 the subsequent signals are not registered
  3. anyone has a sample code for the following? buy whn stoch<30 and exit 5 bars from entry if next day stoch is <30 buy another unit and exit 5 bars from entry if next next day stoch is <30 buy another unit and exit 5 bars from entry try code them but the second and third entry all exit at the first exit altogether rather 5 bars from entry
  4. johni

    Buy and Exit

    anyone has a sample code for the following? buy whn stoch<30 and exit 5 bars from entry if next day stoch is <30 buy another unit and exit 5 bars from entry if next next day stoch is <30 buy another unit and exit 5 bars from entry try code them but the second and third entry all exit at the first exit altogether rather 5 bars from entry
  5. Wanted to buy on the first monday open on the first week and exit on the friday (Same week), the buy always on the tuesday open since TS2000i only allow this bar on close (monday close or next bar open (tuesday open). Using the closeW (1) and OpenW(1) has the above problem. Tried to use closeW(5) and OpenW(5) to generate signal on monday open. This work but if friday is holiday then there is no signal for the coming week. Anyone knows how to code this correctly?
  6. Hi, Anyone can help to translate the following Metastock code into TS2000i compatiable code? The indicator allocate a number to each trading day and reset to zero following a new month. ====================================================== { User input } EOM:=Input("Final month's end: [1]True, [2]Current (dynamic)",1,2,1); { Choice of Static/Dynamic last EOM signal } EOM:=If(EOM=2,Cum(1)=LastValue(Cum(1)), DayOfMonth()=31); { Start of month } nuMonth:=Month()<>Ref(Month(),-1) OR Cum(1)=2; { End of month } monthEnd:=PeakBars(1, -(nuMonth OR Cum(IsDefined(nuMonth))=1),1)=0 OR EOM; { Plot signals in own window } nuMonth;-monthEnd BarsSince(nuMonth) ======================================================= Regards.
  7. Hi anyone knows how to save the following into different delimit? When save in excel as .txt the following is : 02/05/08 9:59 7.975 7.985 7.97 7.975 02/05/08 10:00 7.975 7.975 7.965 7.97 02/05/08 10:01 7.975 7.985 7.965 7.985 02/05/08 10:02 7.975 7.975 7.97 7.97 02/05/08 10:03 7.97 7.97 7.96 7.96 Wanted to save in as the follow : 02/05/08,9:59,7.975,7.985,7.97,7.975 02/05/08,10:00,7.975,7.975,7.965,7.97 02/05/08,10:01,7.975,7.985,7.965,7.985 02/05/08,10:02,7.975,7.975,7.97 7.97 02/05/08,10:03,7.97,7.97,7.96,7.96 A utlitiy specificing the options like data format, delimited used, etc would be good. Or save the above using excel but excel always has tab when saved in text.
×
×
  • Create New...

Important Information

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