NexusFi: Find Your Edge


Home Menu

 





Resetting Variables in MC Signal


Discussion in MultiCharts

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




 
Search this Thread

Resetting Variables in MC Signal

  #11 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


reticent67 View Post
Forgive my ignorance, I don't quite follow your meaning.

Are saying that I should add more confirmation (i.e. indicators) to my strategy or is there some sort of code that I should be implementing to increase reliability?

Thanks again for all your time and responses.

you have to add filters that can help you filter out your logic, instead of piggyback on existing filters.

eg.

you have a true/false filter called okSell.

there is a set of condition that governs this filter.
ie. marketposition = 1 and DSVal crosses above Overbought.

subsequently you declared that okSell = false.

Well, you can't do that.

This is like telling your daughter she is not your daughter anymore because you said so.

the only time the oksell filter equals to false is when the above conditions do not meet the criteria.
When that happens, you do not need to declare it, oksell AUTOMATICALLY becomes false.

What happened in your code is,
after you have declared oksell = false,
as soon as you turned around (in the next tick),
oksell becomes true again.

Hope the above makes sense.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
use extra computer for optimisation
NinjaTrader
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
Quantum physics & Trading dynamics
The Elite Circle
MC PL editor upgrade
MultiCharts
 
  #12 (permalink)
 reticent67 
Los Angeles
 
Experience: Intermediate
Platform: Sierra Chart
Trading: Stocks
Posts: 6 since Jun 2012
Thanks Given: 1
Thanks Received: 0

That makes perfect sense and you are 100% correct. This is exactly the problem I'm trying to overcome. The question is, how?

Once DSVal crosses above the OB, the okSell is set true it will remain true until the condition is no longer met.

Sometimes this cross above happens outside of a trade and I will enter a trade with this variable already set to true. So if the Momentum indicator goes down one day, an exit order will trigger even though the criteria hasn't been fully met by crossing above the OB line. Thereby giving me a bad case of premature evacuation.

So I need to figure how to set it back to false on my trade entry and force it to have to cross above the OB line again in order to be true. Back to the drawing board I go.

Started this thread Reply With Quote




Last Updated on November 2, 2012


© 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