Find entrybars – 1 high low for stoploss use

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

    How do I refer to my entrybar -1 to get its high and low.

    Trying to do something like this:

    IF LongOnMarket AND close < low[TRADEINDEX(-1)] THEN
    SELL AT MARKET
    ENDIF

    Im trying to set a stoploss = low of the bar that generated the trade.

    #45884 quote
    Despair
    Blocked
    Master

    Here you go:

    IF LongOnMarket AND close < low[BARINDEX-TRADEINDEX+1] THEN
     SELL AT MARKET
    ENDIF
    Nicolas thanked this post
    #45886 quote
    Gaastra
    Participant
    New

    Thank you!

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

Find entrybars – 1 high low for stoploss use


General Trading: Market Analysis & Manual Trading

New Reply
Author
author-avatar
Gaastra @gaastra Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Gaastra
8 years, 5 months ago.

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