TradeStation MoneyMangement HELP!

Discussion in 'Strategy Development' started by BenChi, Jan 29, 2006.

  1. BenChi


    Hi All,

    I am a TradeStation Beginner and attempting to code a money management strategy that I can't seem to get working.

    the code is as follows:

    if(marketPosition = 1) then
    longProtStop = entryprice - (moneyManStop/PointValue/PriceScale);
    longProfitStop = entryprice + (takeProfitStop/PointValue/PriceScale);
    osCount = 0;

    and correspondingly:

    if (marketPosition = 1) then
    ExitLong ("longLoss")next bar at longProtStop on a stop;
    ExitLong ("longProfit") next bar at longProfitStop on a limit;

    my problem is that the takeProfitStop and moneyManStop values that are returned when I test the signal are incorrect. With an input of $5 as a money management stop, I can incur a loss of nearly $3 per share on 1000 shares, which is obviously incorrect. My question then, is this: is my formula for determining money management targets incorrect, or are my settings for PointValue and PriceScale somehow incorrect? If so, can these be changed, or are they determined automatically be the program?

    As always, any help would be greatly appreciated!

  2. You should post on Tradestation support forum, an Easy Language engineer will get back to you, usually within hours or a day at at most...
  3. Ben, try using BigPointValue instead of pointvalue, I think that'll do it.

  4. BenChi



    thanks so much!

    all that trouble over 3 little letters.

    do you know off hand what is the difference between BigPointValue and PointValue? maybe I can check the dictionary.

    thanks again