Buy if Close is within lowest 5% of barsize

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #141397 quote
    Robin Wessén
    Participant
    New

    I’m a beginner and i want to code a buysignal for when the close of the bar is in the lowest 5% of the entire bar. I want the code directly in the trading system and not in an indicator. Can someone please show me how to do it?

    5procent.png 5procent.png
    #141411 quote
    robertogozzi
    Moderator
    Master

    >> Please update your country flag in your profile. Thank you 🙂 <<

    #141412 quote
    robertogozzi
    Moderator
    Master
    There you go:
    If close <= (low + (range * 0.05)) then
       Buy 1 contract at Market
    Endif
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Buy if Close is within lowest 5% of barsize


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/11/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...