Coding the size of candlestick bars

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18485 quote
    snapple
    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
    Wing
    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.

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 Wing
9 years, 2 months ago.

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