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,795 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?
March Jobs Report Update: 178K Beat vs 59K Expected, Wag …
Traders Hideout
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
Ceasefire in Name Only: Three Numbers That Define the Ir …
Prediction Markets & Event Contracts
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

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