Help to define the length of a candle

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38358 quote
    Juan Salas
    Participant
    Master

    Hi everyone!!!

    As you may see, I am a newly, and just need a simple answer. How can you define the length of a candle???

    I am trying to define the length in PIPS (FOREX) of the previous candle.

    Example: (close[1]-open[1])>=8. I would like to proceed if the candle is equal or bigger than 8 pips.

    I doesn’t seem to work, so I think that 8 does not define the length in pips. Would anyone please assist me on this??

    Thanks in advance.

    Juan Salas

    #38360 quote
    Nicolas
    Keymaster
    Master

    Please try to take time to make a more understandable title next time you open a new topic, because “help!!!!!!!” as a title doesn’t help people to query much about your request..

    You can retrieve the length of candlestick with the range keyword. To convert the 8 points value for the security you want to make the comparison on, you need to multiply it with pointsize (or pipsize), you code should be:

    if range[1]>8*pipsize then 
     //DO SOMETHING
    endif
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Help to define the length of a candle


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Juan Salas @juan-salas Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 06/15/2017
Status: Active
Attachments: No files
Logo Logo
Loading...