Resetting Variables in MC Signal (Page 2) - MultiCharts | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > MultiCharts

Resetting Variables in MC Signal
Started:November 2nd, 2012 (02:47 PM) by reticent67 Views / Replies:1,078 / 11
Last Reply:November 2nd, 2012 (08:39 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Resetting Variables in MC Signal

Old November 2nd, 2012, 07:46 PM   #11 (permalink)
Trading for Fun
Futures Experience: None
Platform: mc, TS, ninja
Favorite Futures: es
Bimi's Avatar
Posts: 118 since Mar 2010
Thanks: 42 given, 58 received

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.


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.

Last edited by Bimi; November 2nd, 2012 at 07:57 PM.
Reply With Quote
The following user says Thank You to Bimi for this post:

Old November 2nd, 2012, 08:39 PM   #12 (permalink)
Elite Member
Los Angeles
Futures Experience: Intermediate
Platform: TOS
Favorite Futures: Stocks
Posts: 6 since Jun 2012
Thanks: 1 given, 0 received

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.

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > MultiCharts > Resetting Variables in MC Signal

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
MC Traders dynamic index -> conveting to MC yiman MultiCharts 12 August 2nd, 2016 10:40 AM
MC 7.4 Global Variables kleff EasyLanguage Programming 4 May 12th, 2012 12:08 AM
Q on signal counting in MC aczk EasyLanguage Programming 6 February 14th, 2012 10:35 AM
Why are we Stacking these Variables? DonStar AmiBroker 1 January 25th, 2012 09:18 AM
Exposing variables kaywai NinjaTrader Programming 4 April 14th, 2011 11:58 AM

All times are GMT -4. The time now is 11:31 PM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-21 in 0.07 seconds with 19 queries on phoenix via your IP