Easylanguage - Clarification of Exits

Discussion in 'Trading Software' started by stvsmith, Dec 19, 2010.

  1. stvsmith

    stvsmith

    Hi

    Just wondering if someone could clarify the following Easylanguage code snippet from a EOD system.


    Sell Next Bar from entry("buy_signal_name") At$ lowest(low,<value>) stop;
    Buy to Cover Next Bar from entry("sell_signal_name") At$ highest(high,<value>) stop;



    What I am wondering is whether both the "Sell Next Bar from entry" and "Buy To Cover Next Bar from entry" signals (as written above) are only for the day of entry, or whether they would run for the life of the trade?

    The system is basically a stop/reversal system that also utilises a protective stop in certain circumstances and I am trying to understand some of those circumstances (i.e. is it day of entry only, or life of trade).

    The context of the code is:

    if(marketposition <> 1 ) then Buy ("signal_name") tomorrow at <value> stop;
    if(marketposition <>-1) then Sell Short ("signal_name") tomorrow at <value> stop;

    Sell Next Bar from entry("buy_signal_name") At$ lowest(low,<value>) stop;
    Buy to Cover Next Bar from entry("sell_signal_name") At$ highest(high,<value>) stop;


    thanks

    steve
     
  2. traderule

    traderule

    Hi..
    The answer is no..

    they will cover the following day as well..

     
  3. I don't get that. Why don't you try it? This is the best way to find out. Do you have Tradestation?

    Sell next bar from entry is good for all bars after entry but not on the entry bar.

    $AT anchors the price to the entry bar.
     
  4. stvsmith

    stvsmith

    Thanks for your clarification

    (no, I do not have Tradestation)

    regards
    steve