NexusFi: Find Your Edge


Home Menu

 





Up closes counter


Discussion in MultiCharts

Updated
    1. trending_up 3,532 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
Small Dog's Avatar
 Small Dog 
Sydney NSW Australia
 
Experience: Intermediate
Platform: TradeStation, Oanda
Trading: Forex, index futures
Frequency: Daily
Duration: Days
Posts: 182 since Jun 2020
Thanks Given: 18
Thanks Received: 172

In case it could be of interest to anyone, I wrote a short code for the indicator that counts the number of up closes in the defined period and expresses them as a ratio. So If the price closed up 6 times out of 10 it will be expressed as 0.6. On top of that the indicator plots the average of this value of the same length. The code is bare, so no colors or styles pre-defined.


{Counts the number of bars within the specified length where close > open}

Inputs: Length(9);

Vars: UpBars(0),
Count (0),
UpBarCount(0),
CCBars(0),
CCCount(0);


UpBars = 0;
CCBars = 0;

For count = 0 to Length-1 begin
If close[count] > open[count] then UpBars = UpBars + 1;
End;

UpBarCount = UpBars/Length;
CCCount = CCBars/Length;

Plot1 (UpBarCount, "BarCount" );
Plot2 (0.5, "Breakeven");
Plot3 (Average(UpBarCount, Length), "Avg");


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
CFTC Rewrites the Rulebook -- Kalshi Cracks $1B Non-Spor …
Prediction Markets & Event Contracts
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Iran and Israel Stand Down: What $9M in Peace Contracts …
Prediction Markets & Event Contracts
Iran War Prediction Markets: Ceasefire 16%, Ground Invas …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
The Pivot Point 113.6³ — Navigating the Prediction of …
26 thanks
Sober Journey With S&P
17 thanks
The Confluence Meter: A Multi-Layered Signal Framework B …
11 thanks
NT8 color choices
10 thanks
Volume Indicators
7 thanks
  #2 (permalink)
 
FuManChou's Avatar
 FuManChou 
Saint Paul, Minnesota, United States
 
Experience: Intermediate
Platform: MultiCharts
Broker: Edge Clear LLC
Trading: MNQ
Frequency: Many times daily
Duration: Hours
Posts: 109 since Jun 2019
Thanks Given: 1,144
Thanks Received: 122

Thanks for sharing.


Reply With Quote




Last Updated on July 21, 2021


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts