How to code length wick

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #223330 quote
    daxtrader3
    Participant
    Junior

    Dear traders,

    Can someone help me with coding the right why for a candle where the lower or higher wick is 1.5 x the body??

    Thanks in advance😁

    #223333 quote
    PeterSt
    Participant
    Master

    This may get you started ?
    https://www.prorealcode.com/topic/entry-price-long-above-close-of-pinbar/

    Or else try to search for Shooting Star / Hammer (via Google – include “prorealcode” as a term). More topics about it exist, but mostly in other languages.

    #223334 quote
    JS
    Participant
    Senior

    Hi @daxtrader3

    Try this…

    UpperWick=High-Max(Open,Close)
    LowerWick=Min(Open,Close)-Low
    
    TopOfBody=Max(Open,Close)
    BottomOfBody=Min(Open,Close)
    BodySize=TopOfBody-BottomOfBody
    
    If UpperWick=1.5*BodySize or LowerWick=1.5*BodySize then
    ...
    ...
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

How to code length wick


General Trading: Market Analysis & Manual Trading

New Reply
Author
author-avatar
daxtrader3 @daxtrader3 Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by JS
2 years, 3 months ago.

Topic Details
Forum: General Trading: Market Analysis & Manual Trading
Language: English
Started: 11/07/2023
Status: Active
Attachments: No files
Logo Logo
Loading...