Protradercode for close below ma

Forums ProRealTime English forum General trading discussions Protradercode for close below ma

Viewing 3 posts - 1 through 3 (of 3 total)
  • #27944

    I am using 2 moving averages for and short and using a trailing stop profit As I cant use a stop loss and profit target as well with Proorder I wanted to close out when my close fell through the 1st Moving average for a long and up through first moving average for a short

    I tried writing the following but the program did not like use of word “close”

    If longmarket and c < indicator1 then close at market

    any suggestions or can I write something else for a stop loss or profit target

    Many thanks

    Richard Hexton

     

    #27955

    To close a LONG trade you have to use the instruction SELL, to close a SHORT trade you have to use EXITSHORT, instead.

     

    #27956

    Thank you appreciated – new tot this!!

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login