Buy if Close is within lowest 5% of barsize

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #141397 quote
    Robin WessƩnRobin 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
    robertogozzirobertogozzi
    Moderator
    Legend

    >> Please update your country flag in your profile. Thank you šŸ™‚ <<

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

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 robertogozzirobertogozzi
6 years, 1 month ago.

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