Protradercode for close below ma

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27944 quote
    RDHEXTONRDHEXTON
    Participant
    New

    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 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

    #27956 quote
    RDHEXTONRDHEXTON
    Participant
    New

    Thank you appreciated – new tot this!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Protradercode for close below ma


General Trading: Market Analysis & Manual Trading

New Reply
Author
author-avatar
RDHEXTON @rdhexton Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by RDHEXTONRDHEXTON
9 years, 6 months ago.

Topic Details
Forum: General Trading: Market Analysis & Manual Trading
Language: English
Started: 03/09/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...