NexusFi: Find Your Edge


Home Menu

 





Multiple Data, Allocating code when or not to use the data


Discussion in MultiCharts

Updated
    1. trending_up 1,350 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Multiple Data, Allocating code when or not to use the data

  #1 (permalink)
djvie11
Chicago, IL
 
Posts: 52 since Jul 2013
Thanks Given: 29
Thanks Received: 1

Hi Guys!

I'm working with a 3 Data chart in Multicharts. I'm looking to take advantage of both longer term and shorter term opportunities. What I'd like to have happen is this: If I'm "short-term long/short," I'd only like the "short term long/short exit" to apply. Same in reference to the longer term trades.

The problem is, sometimes a shorter or longer term Condition might be true and trigger the wrong exit. I tried to counter this with an "AND" clause (see below), but that doesn't seem to be doing the trick (ex: I'm getting a "short term entry" and then a "long term exit," when I'd like it to be a "short term exit" instead).

Is there a way to specify an entry into the market and disregard the information on the other data stream? Any information would be greatly appreciated! Thanks for your time.

 
Code
IF MarketPosition = 0
THEN BEGIN
IF condition1 THEN BUY              ("Long_ShortTern") next bar at market ;
IF condition3 THEN SELL SHORT ("Short_ShortTerm") next bar at market ; 
IF condition5 THEN BUY              ("Long_LongTern") next bar at market ;
IF condition7 THEN SELL SHORT ("Short_LongTerm") next bar at market ; 
END; 

IF MarketPosition <> 0
THEN BEGIN
IF Condition2 AND Condition1 THEN SELL                ("exitLong_ShortTerm") next bar at market ; 
IF Condition4 AND condition3 THEN BUY TO COVER ("exitShort_ShortTerm") next bar at market ; 
IF Condition6 AND condition5 THEN SELL                 ("exitLong_LongTerm") next bar at market ; 
IF Condition8 ANd Condition7 THEN BUY TO COVER ("exitShort_LongTerm") next bar at market ;
END ;

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
Quantum physics & Trading dynamics
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
15 thanks
GFIs1 1 DAX trade per day journal
12 thanks
EG Indicators
11 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

djvie11,

if you only want to allow short term exits to be used with short term entries, you could tie your exits to the entry using "from Entry" as described here:
https://www.multicharts.com/trading-software/index.php/Entry

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #3 (permalink)
djvie11
Chicago, IL
 
Posts: 52 since Jul 2013
Thanks Given: 29
Thanks Received: 1



ABCTG View Post
djvie11,

if you only want to allow short term exits to be used with short term entries, you could tie your exits to the entry using "from Entry" as described here:
https://www.multicharts.com/trading-software/index.php/Entry

Regards,

ABCTG

This is EXACTLY what I'm looking for! Thank you, ABCTG!

Reply With Quote




Last Updated on May 3, 2017


© 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