Recent content by dpleydell

  1. D

    profit taking

    I was referring to the logic of the TS code rather than the concept of staging your exits. I had to set a variable to my profit level and use that in the Exitlong statement which seemed to work ok. David
  2. D

    profit taking

    If I do something like buy 2 contracts next bar open stop; Then when a profit level is reach I want to sell 1 contract will this work? ExitLong 1 contract next bar open; It doesn't seem to be. David
  3. D

    Stoch function

    Looks like it's the SlowKClassic function that is the same as Metastock.
  4. D

    Stoch function

    Hi Does anyone know what functions in TS match the Metastock function of Stoch? Which is defined as stoch(%K periods, %k Slowing) I've looked at the SlowK, SlowKCustom and so on but they don't seem to match correctly. David
  5. D

    how does the cum() function work?

    Not sure, It's more looking at momentum I think. It's from a trader named: Linda .... not sure of the second name. My friend gave it to me to code up for him. David
  6. D

    how does the cum() function work?

    Thanks. I know the code is not really complete as is, I'm more after the explanation of what the Cum() is doing coz I'd like to convert it to Tradestation. David
  7. D

    how does the cum() function work?

    setbars:=3; ff:= Stoch(7,1); ss:=Stoch(16,1) cbuy:=If(ff<=Ref(ff,-1) AND ss>=Ref(ss,-1),Cum(1),0); bbuy:=If(cbuy>=setbars,H, 99999); This is some sample code, but I'm not sure exactly what the Cum() function is doing here? The Metastock primer says it just adds time but when does that happen...
  8. D

    Prob with function

    Please Ignore. I solved the problem. I'm still getting used to programming TS compared to C/C++.
  9. D

    Prob with function

    Hi, I was playing around with a function and when I put it into a showme it didn't seem to work correctly in the sense that it selected every signal bar. However if I paste the code straight into the showme it actually works so I'm not sure why my function isn't returning the right value. Any...
  10. D

    EasyLanguage Question

    Thanks. That worked. I didn't realise you can back date your sell orders like that. David
  11. D

    EasyLanguage Question

    Hi, Is is possible in Easy Language to place a Short Sell at the low of the signal bar and have it triggered IF the price trades below but cancel this order if not filled within 2 days? Thanks David
Top