NexusFi: Find Your Edge


Home Menu

 





Up closes counter


Discussion in MultiCharts

Updated
    1. trending_up 3,113 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: 161 since Jun 2020
Thanks Given: 10
Thanks Received: 151

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?
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
25 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
22 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