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,898 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread
  #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?
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
Wood Mackenzie Drops $200 Oil Forecast -- Airspace Expir …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
2 thanks
CME Expands 24/7 Trading to WTI Crude Oil and Gold -- We …
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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 X 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


© 2026 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 - Downloads - Top
no new posts