Click here to Login





                                                   Reference to entryprice in strategy

  0

0
Dennis Schutten
2016-02-29 08:15:22


Hi,

Is it possible to make a reference to the entryprice in a strategy? It's for a stoploss.

For example :

sell=entryprice-close>10;

I have tried this with sell=drawdown()>10; But this does not work. It does not exit.

Regards,

Dennis



QuantShare
2016-03-01 03:01:33

  0

The strategy formula is executed to generate signals and thus it doesn't have access to entry prices.

For a stoploss, you just need to use the built-in stop-loss function
SetSimStop(_StopLoss, _Point, 10, 0); // Stop loss $10



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
    To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










    QuantShare

    Trading Items
    Strategy Indicator - Percent winning trades for a trading rule
    Adaptive BuyInd MR_Mom Strategy
    Sleep Well Bond Rotation Strategy V1.0
    Global Market Rotation Strategy V1.1
    FRAMA Adaptive Strategy

    How-to Lessons
    How to display two stocks on the same chart
    How to plot the relative performance of several stocks/indices
    How to associate an index with a list of stocks
    How to create and trade a Neural Network model
    How to add a metric in the trading system simulation report

    Related Forum Threads
    Momemtum Strategy
    Set Position Size by Ticker Within Main Strategy
    Reference pane variables
    Advice on building a trading simulator strategy
    Convert TOS Strategy to Quantshare Strategy

    Blog Posts
    Create a trading strategy using the money management tool - Part ...
    Create a trading strategy using the money management tool - Part ...
    How to Backtest a Strategy from a Chart
    Backtesting a Strategy Based on Bond and Stock Index ETFs
    Money Management: Scale-in Trading Strategy









    QuantShare
    Product
    QuantShare
    Features
    Create an account
    Affiliate Program
    Support
    Contact Us
    Trading Forum
    How-to Lessons
    Manual
    Company
    About Us
    Privacy
    Terms of Use

    Copyright © 2025 QuantShare.com
    Social Media
    Follow us on Facebook
    Twitter Follow us on Twitter
    Google+
    Follow us on Google+
    RSS Trading Items



    Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.