NexusFi: Find Your Edge


Home Menu

 





Need help with order entry on multiple dataseries


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one bobbakerr with 12 posts (0 thanks)
    2. looks_two Big Mike with 7 posts (3 thanks)
    3. looks_3 thatguy with 2 posts (3 thanks)
    4. looks_4 Quick Summary with 1 posts (0 thanks)
    1. trending_up 9,566 views
    2. thumb_up 6 thanks given
    3. group 1 followers
    1. forum 20 posts
    2. attach_file 1 attachments




 
Search this Thread

Need help with order entry on multiple dataseries

  #11 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,662

I'm not doing a real good job explaining. You may have to post on TSSupport forum so they can help.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
What broker to use for trading palladium futures
Commodities
 
  #12 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51

You do a better job than anybody. It's me who has a difficult time getting my ideas across.

Started this thread Reply With Quote
  #13 (permalink)
 thatguy 
New Brunswick, NJ
 
Experience: Intermediate
Platform: N/A
Trading: N/A
Posts: 133 since Jun 2009
Thanks Given: 46
Thanks Received: 157


I cannot remember why and I haven't used TS or MC in a long time, but I remember that things get tricky when you use multiple data streams when calling functions and when doing that, this is better to have them in this format:

Data1_average = Average(close, 10);
Data2_average = Average(close, 10) of data2;

This has something to do that inside the function, it falls back to your main data stream which is Data1.

I think if you change your code:
 
Code
 
 
MACD1=MACD(Close of Data1,F1,S1);  //  240-Tick Chart.
MACD1=XAverage(MACD1,L1);  //  Exit off of this.
MACD2=MACD(Close of Data2,F2,S2);  // 480-Tick Chart.
MACD2=XAverage(MACD2,L2);  //  Enter off of this.
MACD3=MACD(Close of Data3,F3,S3);  // 30-min. Chart.
To this, it might work:

 
Code
MACD1=MACD(Close,F1,S1) of Data1;  //  240-Tick Chart.  (really not needed to specify Data1 though)
MACD1=XAverage(MACD1,L1);  //  Exit off of this.
MACD2=MACD(Close,F2,S2) of Data2;  // 480-Tick Chart.
MACD2=XAverage(MACD2,L2);  //  Enter off of this.
MACD3=MACD(Close,F3,S3) of Data3;  // 30-min. Chart.

Reply With Quote
Thanked by:
  #14 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51

Thank you, thatguy. I'll give it a try right now.

Started this thread Reply With Quote
  #15 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51

No, it missed most of the signals. I got only 17 trades vs. 1379 trades the 'old' way. Plus, it was about $4000 less in net profit (2 contracts).

I just can't figure it out. And I hate to go to TradeStation.

Started this thread Reply With Quote
  #16 (permalink)
 thatguy 
New Brunswick, NJ
 
Experience: Intermediate
Platform: N/A
Trading: N/A
Posts: 133 since Jun 2009
Thanks Given: 46
Thanks Received: 157

You'll have to change the other function calls as well...

Like the AverageFC(Close of Data2,Y);

to

AverageFC(Close,Y) of Data2;

Reply With Quote
Thanked by:
  #17 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,662


bobbakerr View Post
I just can't figure it out. And I hate to go to TradeStation.

Premature to abandon MultiCharts over this. Plus I would expect TradeStation will perform similarly. You should just ask for help on the MultiCharts forum. You can also email support and ask them for help, I am not sure what their policy is on user generated signals receiving tech support, but certainly worth trying.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #18 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51


thatguy View Post
You'll have to change the other function calls as well...

Like the AverageFC(Close of Data2,Y);

to

AverageFC(Close,Y) of Data2;

No, thatguy, still no luck. I got the same results as the last change (had only 17 trades). But thank you for the suggestions.

I'll try anything!

Started this thread Reply With Quote
  #19 (permalink)
 
bobbakerr's Avatar
 bobbakerr 
Riverdale, Idaho, USA
 
Experience: Intermediate
Platform: Optimus Futures + MultiCharts + TradeStation
Broker: Optimus Futures, Rithmic Data, TradeStation
Trading: CL, ES
Posts: 115 since Aug 2010
Thanks Given: 241
Thanks Received: 51


Big Mike View Post
Premature to abandon MultiCharts over this. Plus I would expect TradeStation will perform similarly. You should just ask for help on the MultiCharts forum. You can also email support and ask them for help, I am not sure what their policy is on user generated signals receiving tech support, but certainly worth trying.

Mike


Mike, I won't give up on MultiCharts. I believe they're better than any other charting and backtesting platform out there. It's just that all of them, it seems, have small bugs. Either that, or I'm dumber than I thought.

I really didn't want to broadcast this strategy of mine to the world. It has been very profitable and if the whole world ends up doing it, it probably won't work anymore. But I'm not young now and I would like very much to have this thing do my trading for me automatically.

Started this thread Reply With Quote
  #20 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,662



bobbakerr View Post
Mike, I won't give up on MultiCharts. I believe they're better than any other charting and backtesting platform out there. It's just that all of them, it seems, have small bugs. Either that, or I'm dumber than I thought.

I really didn't want to broadcast this strategy of mine to the world. It has been very profitable and if the whole world ends up doing it, it probably won't work anymore. But I'm not young now and I would like very much to have this thing do my trading for me automatically.

I can't think of any outstanding bugs at the moment. You should report bugs, Help -> Send Feedback in the platform. In the MultiCharts thread you should share some of the bugs you've encountered.

For protecting the strategy, my advice is just get rid of the MACD stuff, just use an SMA or whatever, MACD has nothing to do with the problem.

Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on August 29, 2010


© 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