Coding the size of candlestick bars

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18485 quote
    snapplesnapple
    Participant
    New

    Hi,

    I was wondering if anyone knows about coding minimum size of a candlestick body in a relation to the previous one.

    So far what I think it would be is

    MyRange = Range
    Minimum = (MyRange / MyRange[1] - 1) * 100
    
    IF minimum > 20 THEN
    Buy condition....

    By doing this I am saying that I want to enter only if the bar is greater than 20% the size of the previous bar, but the program doesn’t seem to be following that.

    I was wondering if anyone else has something similar?

    #18514 quote
    WingWing
    Participant
    Veteran

     

    MyVar =(open-close)/(open[1]-close[1])
    if abs(MyVar)>1.25 then
    buy conditions
    Nicolas thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

Coding the size of candlestick bars


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
snapple @snapple Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by WingWing
9 years, 9 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/13/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...