Help to define the length of a candle

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38358 quote
    Juan SalasJuan 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
    NicolasNicolas
    Keymaster
    Legend

    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.
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

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 NicolasNicolas
9 years, 3 months ago.

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