NexusFi: Find Your Edge


Home Menu

 





Coding Multicharts Ticki for OMX (stockholm) futures


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one ABCTG with 7 posts (1 thanks)
    2. looks_two stefanols with 6 posts (0 thanks)
    3. looks_3 trader201 with 1 posts (0 thanks)
    4. looks_4 Granit with 1 posts (0 thanks)
    1. trending_up 3,593 views
    2. thumb_up 1 thanks given
    3. group 5 followers
    1. forum 14 posts
    2. attach_file 4 attachments




 
Search this Thread

Coding Multicharts Ticki for OMX (stockholm) futures

  #11 (permalink)
 stefanols 
Helsingborg
 
Experience: Intermediate
Platform: Bullcharts, Multicharts
Trading: ES and scandinavian Stocks
Posts: 17 since May 2011
Thanks Given: 6
Thanks Received: 5

Hi,

Yes that is what I mean plus 1 for the coming result.

I could not see any other question.

Best regards

Stefan

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
Trend Direction Force Index (TDFI)
Platforms and Indicators
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
 
  #12 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

Stefan,

wouldn't the result be 11? newUpTick[1] (this is 10) + 1 = 11.

 
Code
if close of data(datacounter) > close[ 1 ] of data(datacounter) then newupTick = newUptick[1] + 1;
Additionally with your loop you overwrite the result again, so regardless of how many symbols fulfill your condition the result would always come out as previous value + 1 and not previous value + number of symbols that fulfilled your condition. That's likely why you see the counters grow by one for each bar on the chart (with a reset in case no symbol matches your conditions on a bar).

This is something you should check using print statements within your code to confirm that this actually is the issue.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #13 (permalink)
 stefanols 
Helsingborg
 
Experience: Intermediate
Platform: Bullcharts, Multicharts
Trading: ES and scandinavian Stocks
Posts: 17 since May 2011
Thanks Given: 6
Thanks Received: 5


Hi,

It should add until new bar then it should reset.

I have added the print function include the result.

So the question then is how I reset every bar as it should show max 47 or min 47.

Best regards Stefan



ticki.docx

Started this thread Reply With Quote
  #14 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

Stefan,

what do the print statements tell you? I can't help you with these as I a.) don't know where you added them and b.) my suggestion was meant to help you understanding what is going on in your code.

We know that newupTick = newUptick[1] + 1; isn't giving you the result you are looking for as it doesn't track how many of the symbols fulfill the condition (the outcome will always be previous value + 1 regardless of how many symbols fulfill your check).

Your code needs something along the lines of:

1. Reset a counter to 0 at the beginning of the bar (or at the end of the bar, but place it at the end of your code)

2. For every symbol that fulfills your condition you want to check for add +1 during your loop. Don't overwrite the previous checks result with each new check, but add to it.

3. After the loop you can compute the final result by adding the counter result to result on the previous bar.

I'll gladly help you to steer you in the right direction, but I don't plan to "spoon feed" you with the final code - simply because you'll learn much more and benefit by the first approach. If this is not what you have in mind, please let me know and I'll refrain from posting in here, as I have no intention to waste your time.

By the way you can show your appreciation for any post on futures.io by clicking the "Thanks" button next to it.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #15 (permalink)
Granit
Gothenburg / Sweden
 
Posts: 2 since Aug 2017
Thanks Given: 1
Thanks Received: 0

Hi there!

Did you succeed building the ticki indicator? I have built similar indicator for swedish stocks but in Investor RT

Cheers

Reply With Quote




Last Updated on April 14, 2019


© 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