Who can code this Block Moving Average for Sierra charts - Sierra Chart Programming | futures io social day trading
futures io futures trading


Who can code this Block Moving Average for Sierra charts
Updated: Views / Replies:270 / 2
Created: by Nicolaas Attachments:3

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Who can code this Block Moving Average for Sierra charts

  #1 (permalink)
Trading Apprentice
Utrecht+Utrecht/ The netherlands
 
Futures Experience: Intermediate
Platform: Sierra Charts, Tradestation, MetaTrader
Favorite Futures: forex
 
Posts: 7 since Apr 2015
Thanks: 1 given, 2 received

Who can code this Block Moving Average for Sierra charts

Hi,

I really like this indicator, it is called stepup, others call it block-moving average.
It can keep you in a trend for a longer time then with normal moving averages, if you use a longer and a shorter time, it gets you great entries.

Who can code this Block Moving Average for Sierra charts? Or has somebody coded this already for Sierra charts?

There are many different versions, I just attached one of them for reference.
The picture shows the indy with settings (0,0,34,50,2,1,0,1,0) on a 5m EURUSD chart.

Thanks a lot! Regards,

Nicolaas
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Attached Files
Register to download File Type: mq4 stepma_v9_nmc.mq4 (12.8 KB, 12 views)
Reply With Quote
The following user says Thank You to Nicolaas for this post:
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Trading Apprentice
Utrecht+Utrecht/ The netherlands
 
Futures Experience: Intermediate
Platform: Sierra Charts, Tradestation, MetaTrader
Favorite Futures: forex
 
Posts: 7 since Apr 2015
Thanks: 1 given, 2 received


I do have a more simplified Stepup moving average or Block moving average code in easylanguage, this has about the same output. Maybe this one is easier to convert for Sierra Charts?

The code:

{=== StepUp Moving Average OR Block Moving Average =============}
Inputs: SU_ATR_Length ( 2000 ),
SU_ATR_BoxMultiplyer_1 ( 8 ),
SU_ATR_BoxMultiplyer_2 ( 13 );

Vars: SU_DIR1(0), SU_WorkBoxHalf1(0), SU_Midl1(0), SU_Bot1(0), SU_Top1(0),
SU_DIR2(0), SU_WorkBoxHalf2(0), SU_Midl2(0), SU_Bot2(0), SU_Top2(0) ;

SU_WorkBoxHalf1 = ( SU_ATR_BoxMultiplyer_1 * AvgTrueRange( SU_ATR_Length ) * 0.5 ) ;

If H > SU_Top1 then begin
SU_DIR1 = 1 ;
SU_Top1 = H ;
SU_Midl1 = SU_Top1 - SU_WorkBoxHalf1 ;
SU_Bot1 = SU_Top1 - ( 2 * SU_WorkBoxHalf1 ) ;
End else
If L < SU_Bot1 then begin
SU_DIR1 = -1 ;
SU_Bot1 = L ;
SU_Midl1 = SU_Bot1 + SU_WorkBoxHalf1 ;
SU_Top1 = SU_Bot1 + ( 2 * SU_WorkBoxHalf1 ) ;
end ;

SU_WorkBoxHalf2 = ( SU_ATR_BoxMultiplyer_2 * AvgTrueRange( SU_ATR_Length ) * 0.5 ) ;


If H > SU_Top2 then begin
SU_DIR2 = 1 ;
SU_Top2 = H ;
SU_Midl2 = SU_Top2 - SU_WorkBoxHalf2 ;
SU_Bot2 = SU_Top2 - ( 2 * SU_WorkBoxHalf2 ) ;
End else
If L < SU_Bot2 then begin
SU_DIR2 = -1 ;
SU_Bot2 = L ;
SU_Midl2 = SU_Bot2 + SU_WorkBoxHalf2 ;
SU_Top2 = SU_Bot2 + ( 2 * SU_WorkBoxHalf2 ) ;
end ;

{ ================ Print ======================================}
vars: SU_mid_C1(0), SU_mid_C2(0);

If SU_DIR1 = 1 then SU_mid_C1 = cyan else SU_mid_C1 = magenta ;
plot1 ( SU_Midl1, " SU_Midl1 " , SU_mid_C1 ) ;

If SU_DIR2 = 1 then SU_mid_C2 = cyan else SU_mid_C2 = magenta ;
plot2 ( SU_Midl2, " SU_Midl2 ", SU_mid_C2 ) ;

Attached Thumbnails
Who can code this Block Moving Average for Sierra charts-easylanguage-block-moving-average-code.png  

Last edited by Nicolaas; May 5th, 2018 at 12:16 PM. Reason: attachment missing
Reply With Quote
The following user says Thank You to Nicolaas for this post:

Reply



futures io > > > > > Who can code this Block Moving Average for Sierra charts

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

September Journal Challenge (sponsored by TopstepTrader)

September

Battlestations! Win $947 in prizes for showing us your trading desk!

October
 

Finding Your Edge & Maximizing Returns w/Richard L Weissman

Oct 16
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Average With Colors TOS Code Marty3 ThinkOrSwim 3 May 5th, 2015 11:21 AM
Help with moving average code guspenskiy13 ThinkOrSwim Programming 2 May 14th, 2014 10:57 PM
Simple moving Average in different tick charts ftrebbi Emini Index Futures Trading 12 June 11th, 2013 02:38 AM
how to code a trendline from a moving average cross? program MultiCharts 19 July 30th, 2012 10:05 PM
How to code a Simple Moving Average? Fat Tails NinjaTrader Programming 5 October 20th, 2010 08:04 PM


All times are GMT -4. The time now is 08:14 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2018-10-14 in 0.11 seconds with 16 queries on phoenix