ana SuperTrend....... - futures io
futures io futures trading



ana SuperTrend.......


Discussion in EasyLanguage Programming

Updated by ABCTG
      Top Posters
    1. looks_one Fat Tails with 12 posts (11 thanks)
    2. looks_two cbritton with 9 posts (13 thanks)
    3. looks_3 Serger with 5 posts (0 thanks)
    4. looks_4 tst1 with 5 posts (0 thanks)
      Best Posters
    1. looks_one cbritton with 1.4 thanks per post
    2. looks_two sptrader with 1.0 thanks per post
    3. looks_3 Fat Tails with 0.9 thanks per post
    4. looks_4 ABCTG with 0.8 thanks per post
    1. trending_up 24,478 views
    2. thumb_up 32 thanks given
    3. group 17 followers
    1. forum 48 replies
    2. attach_file 14 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Thread Tools Search this Thread
 

ana SuperTrend.......

  #11 (permalink)
Site Administrator
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
Posts: 48,778 since Jun 2009
Thanks: 31,486 given, 94,171 received


Fat Tails View Post
Looks good now. If it is not identical, it comes very close at least. I think you made it.

@Fat Tails, I still hold out hope you'll leave the dark side and come to the EasyLanguage camp with MultiCharts...



Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/
Follow me on Twitter Visit my Facebook Visit my futures io Trade Journal Reply With Quote

Can you help answer these questions
from other members on futures io?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
Best Threads (Most Thanked)
in the last 7 days on futures io
FIO Journal Challenge - June 2020 edition w/SharkIndicators
59 thanks
Spoo-nalysis ES e-mini futures S&P 500
55 thanks
June Charity Fundraiser - Feeding hungry families
51 thanks
Fixed vs trailing stops
28 thanks
AMP Futures / AMP Global Review
27 thanks
 
  #12 (permalink)
MIAMI,FL
 
Experience: Advanced
Platform: NinjaTrader
Broker: Private
Trading: Zn,6E,6J
 
sharky's Avatar
 
Posts: 1,060 since Jun 2009
Thanks: 624 given, 3,900 received

Bullcrap Mike we need him over here on the dark side,may someone elses force be with you lol...sharky

KILLING THE MARKETS DAILY
Visit my futures io Trade Journal Reply With Quote
 
  #13 (permalink)
Auckland
 
Experience: Advanced
Platform: Ninja Trader
Broker: Zen-Fire
Trading: CL and ES
 
Posts: 756 since Apr 2010
Thanks: 3,785 given, 724 received


totally with Sharky on this one Mike....

Visit my futures io Trade Journal Reply With Quote
 
  #14 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,824 since Mar 2010
Thanks: 4,237 given, 26,524 received


Big Mike View Post
@Fat Tails, I still hold out hope you'll leave the dark side and come to the EasyLanguage camp with MultiCharts...



Mike


@Big Mike:

I do not see any dark side. As you have put it, both NinjaTrader and MultiCharts have advantages and shortcomings. I will probably use MultiCharts sooner or later just to diversify, as I want to reduce my dependence on a single software package. Further I am aware of the huge collection of indicators and strategies for TradeStation, which can be used with MultiCharts.

On the other side there is little I can gain from this step, as long as I do discretionary trading. It might be different, if I want to run automated strategies.

Also it is convenient to let you test various software packages and wait for the outcome.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #15 (permalink)
Atlanta, Georgia
 
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 248 received


cbritton View Post

Here's the function for moving median:

Fixed a mistake. The error won't affect the calculation or the outcome of the charts I posted. Here's the updated moving median function:

 
Code
inputs:
    Price(NumericSeries),
    length(NumericSimple);

variables: 
    int period(0),
    int idx(0),
    int meanIdx(0),
    int priorIdx(0),
    float MA(0.0);
    
Array: float mArray[](0);
    
if length < 1 then period = 1 else period = length; //throw some exception

Array_SetMaxIndex(mArray, period);

if currentbar < period then begin
    value1 = currentbar + 1;
    for idx = 0 to value1 - 1 begin  // inclusive?
        mArray[idx] = price[idx];
    end;
    value2 = SortArray(mArray,period,1);  //ascending?? should not matter since we're getting the median
    
    if mod(period, 2) = 0 then MA = 0.5 * (mArray[value1/2] + mArray[value1/2-1])
    else MA = mArray[(value1-1)/2];

end else begin

    for idx = 0 to period - 1 begin
        mArray[idx] = price[idx];
    end;
    value2 = SortArray(mArray,period,1);
    if mod(period, 2) = 0 then 
        MA = 0.5 * (mArray[period/2] + mArray[period/2-1])
    else
        MA = mArray[(period-1)/2];

end;

_MovingMedian = MA;
Regards,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Reply With Quote
The following 4 users say Thank You to cbritton for this post:
 
  #16 (permalink)
Quebec
 
Experience: Intermediate
Platform: Multicharts 64 +VolProfile
Broker: AMP Trading / CQG
Trading: Ym, Es
 
Serger's Avatar
 
Posts: 72 since Oct 2010
Thanks: 64 given, 24 received

Hello guys,,
I am impressed by your work .. you have an idea where I can find information and how or programer, easy language
it remains a mystery but I would like learn ......
thank you all for your help ...
Serger

Reply With Quote
 
  #17 (permalink)
Atlanta, Georgia
 
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 248 received


Serger View Post
Hello guys,,
I am impressed by your work .. you have an idea where I can find information and how or programer, easy language
it remains a mystery but I would like learn ......
thank you all for your help ...
Serger

Where I started: Free Tutorials for EasyLanguage Services for TradeStation

Regards,
-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Reply With Quote
The following user says Thank You to cbritton for this post:
 
  #18 (permalink)
Quebec
 
Experience: Intermediate
Platform: Multicharts 64 +VolProfile
Broker: AMP Trading / CQG
Trading: Ym, Es
 
Serger's Avatar
 
Posts: 72 since Oct 2010
Thanks: 64 given, 24 received

Super,
good reading for this weekend
Thank you
Serger

Reply With Quote
 
  #19 (permalink)
Quebec
 
Experience: Intermediate
Platform: Multicharts 64 +VolProfile
Broker: AMP Trading / CQG
Trading: Ym, Es
 
Serger's Avatar
 
Posts: 72 since Oct 2010
Thanks: 64 given, 24 received

Some problems to Compile this code
whit words "movingmedian ....and period'' .... ????
Do you send a Pla. or compiled fonction ??
Thank you so much ...
Serger

Reply With Quote
 
  #20 (permalink)
Atlanta, Georgia
 
Experience: Intermediate
Platform: NT
Broker: DDT
Trading: ZN, ZB
 
cbritton's Avatar
 
Posts: 224 since Mar 2010
Thanks: 152 given, 248 received



Serger View Post
Some problems to Compile this code
whit words "movingmedian ....and period'' .... ????
Do you send a Pla. or compiled fonction ??
Thank you so much ...
Serger

TS does not support pla types. Try to import this eld file.

-C

“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
Attached Files
Register to download File Type: eld ANASUPERTREND.ELD (21.4 KB, 362 views)
Reply With Quote
The following user says Thank You to cbritton for this post:



futures io Trading Community Platforms and Indicators EasyLanguage Programming > ana SuperTrend.......




Upcoming Webinars and Events
 

Free BloodHound Licenses for everyone!

June
 

Every journal equals ten meals for the hungry

June
     



Copyright © 2020 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