StockFetcher Forums · General Discussion · Drummond Geometry<< >>Post Follow-up
sairamss
2 posts
msg #149435
Ignore sairamss
10/27/2019 8:00:35 AM

Hello,
I am trying to code this Drummond Geometry concept for Daily and Weekly charts.
Daily PLdot based on daily HLC prices of last 3 days= {Avg[H(1),L(1),C(1)] + Avg[H(2),L(2)C(2) + Avg[H(3),L(3),C(3)]] / 3
Weekly PLDot based on weekly HLC prices for last 3 weeks= {Avg[H(1),L(1),C(1)] + Avg[H(2),L(2)C(2) + Avg[H(3),L(3),C(3)]] / 3

Show stocks which are above Daily and weekly Pldots
Show stocks which are below Daily and Weekly Pldots

Is there a way to program this. ? Appreciate your help.

Thanks
-Sai

xarlor
581 posts
msg #149436
Ignore xarlor
10/27/2019 2:42:01 PM

Fetcher[
// Daily PLdot based on daily HLC prices of last 3 days
// Weekly PLDot based on weekly HLC prices for last 3 weeks

// Show stocks which are above Daily and weekly Pldots
// Show stocks which are below Daily and Weekly Pldots

close > 10

// Daily PLDot

set{x1,high + low}
set{x2,x1 + close}
set{x3,x2 / 3}

set{y1,x1 1 day ago}
set{y2,x2 1 day ago}
set{y3,y2 / 3}

set{z1,x1 2 days ago}
set{z2,x2 2 days ago}
set{z3,z2 / 3}

set{var1,x3 + y3}
set{var2,var1 + z3}
set{DPLdot,var2 / 3}

// Weekly PLDot

set{j1,weekly high + weekly low}
set{j2,j1 + weekly close}
set{j3,j2 / 3}

set{k1,j1 1 week ago}
set{k2,j2 1 week ago}
set{k3,k2 / 3}

set{l1,j1 2 weeks ago}
set{l2,j2 2 weeks ago}
set{l3,l2 / 3}

set{var10,j3 + k3}
set{var11,var10 + l3}
set{WPLdot,var11 / 3}

// Above (Buy) or Below (Sell)

set{buy1,count(close > DPLdot,1)}
set{buy2,count(close > WPLdot,1)}
set{BUY,buy1 * buy2}

set{sell1,count(close < DPLdot,1)}
set{sell2,count(close < WPLdot,1)}
set{SELL,sell1 * sell2}

set{trigger,buy + sell}
trigger > 0
do not draw trigger

// Numbers, lines, and stuff

add column buy
add column sell
add column DPLdot
add column WPLdot
draw price line at DPLdot
draw price line at WPLdot

// There are three types of people in this world. Those who can count and those who can't.
]



sairamss
2 posts
msg #149454
Ignore sairamss
10/27/2019 11:37:14 PM

@xarlor - Thank you and appreciate your efforts to get this. I had coded one for Ninjatrader 8. So if anyone needs that, please reach out to me. This sf community is so awesome.

StockFetcher Forums · General Discussion · Drummond Geometry<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.