NexusFi: Find Your Edge


Home Menu

 





Up closes counter


Discussion in MultiCharts

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




 
Search this Thread

Up closes counter

  #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: 144 since Jun 2020
Thanks Given: 10
Thanks Received: 147

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
The following 3 users say Thank You to Small Dog for this post:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Request for MACD with option to use different MAs for fa …
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
67 thanks
Battlestations: Show us your trading desks!
48 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks

  #2 (permalink)
 
FuManChou's Avatar
 FuManChou 
Saint Paul, Minnesota, United States
 
Experience: Beginner
Platform: MultiCharts
Broker: Edge Clear LLC
Trading: MNQ
Posts: 100 since Jun 2019
Thanks Given: 1,127
Thanks Received: 120

Thanks for sharing.

Reply With Quote





Last Updated on July 21, 2021


© 2024 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 - Privacy Policy - Downloads - Top
no new posts