Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
i've been incorporating big mike's methodology into my strategy that i am testing on tradestation. i've been trying to get my head around the following problem for the past few hours but couldn't find any solution to it:
whereas the system enters a long/short position ok, it wouldn't take into account any of the limits placed (for both stop and take profit) but would close the position at the entry price on the bar where the trade was entered.as a result the strategy is not generating any profit or loss (ignoring comms). (for additional info i'm backtesting on FGBL futures and i am using a 1min chart).
Big Mike says the variable "Ticksize" is not standard with MC.
I tried compiling the script and got an error highlighting that line of code of course. So, how do I get the ticksize variable in MC?
Trying to code a simple scale-out logic in Multicharts, using a kind of different order placing mechanism.
My code looks for arrows on the chart, and whenever one is found, it enters a position according to arrow orientation and the number present within the arrow text attribute. I also need to scale out. Let's say, I enter with 3 contracts long, and I need to have 3 levels with 3 separate sell orders.
Essentially, this helps me manually place trades on history data on a chart - kind of a playback (done just by scrolling the chart to the right bar by bar) with the option of placing trades as well, and get a performance report on these "manually" entered trades.
What doesn't work:
Let's say, a long position opened on bar number 3 with code:
buy ("myOrder") 3 contracts this bar at close;
At bar 5 I sell 2 of those contracts:
sell ("myOrder") 2 contracts this bar at close;
At bar 7 I want to sell the last contract as well, basically, closing the "myOrder" position entirely:
sell ("myOrder") 1 contracts this bar at close;
However, I get the following error message in Multicharts:
"error in stuy ... "myOrder" name has already been used for the other order".
If I don't specify an order name at all, even though I sell 3 contracts across two consecutive sell orders, at the last bar, I still have MarketPosition = 1 which means position is not entirely closed, which can be seen on the graph as well (I can see the first sell order for 2 contracts, but no the second sell order for 1 contract).
Is there a workaround to this, or something I miss
?
Big Mike says the variable "Ticksize" is not standard with MC.
I tried compiling the script and got an error highlighting that line of code of course. So, how do I get the ticksize variable in MC?
Broker: Tradestation/Tradestation, NinjaTrader, FXCM and Tallinex
Trading: ES, CL, EUR/USD, TF
Posts: 173 since Aug 2009
Thanks Given: 105
Thanks Received: 61
Big Mike
Last year I did a video tutorial on creating an advanced NinjaTrader strategy, and you guys liked it. So I thought that since I don't use NT any more it would be a good idea to do the same strategy as an example in EasyLanguage with MultiCharts.
First, here is a link to the NinjaTrader Video Tutorial:
In this video tutorial I show how to create a strategy from scratch (not using the wizard, which I never use).
The strategy contains a few optimizable parameters such as SMA length, EMA length, HMA length, three different targets with custom tick settings …
OK, so in this video I show you how to create a strategy with optimizable parameters such as SMA length, EMA length, HMA length, three different targets, a stop, and the option to move target 2 to breakeven after target 1 is hit, as well as an option to move target 3 to breakeven after target 2 is hit.
Remember, this strategy is just an example! It took only a few minutes to write, and even though it shows to be profitable - it isn't (it won't be). Simple strategies are usually best to avoid curve fitting, but this one is too simple to actually work fully automated. A good strategy may take dozens of hours to create.
This example was created just so you could get your feet wet and learn some of the basics of strategy creation in MultiCharts or EasyLanguage.
Mike
Hi Mike
thanks for this video and also for the Ninja one as they both helped me learn.
The one thing that is a little confusing for me is how different Easy Language is from Ninja in terms of setting stops and targets.
With Ninja, you just set it at the beginning. With Easy Language, it seems like you have to set them at the beginning, then again after target1 is hit, then again after target2 is hit.
So my question is will this strategy work Live? Does Easy Language automatically cancel all orders after something is filled?
Does Tradestation/Multicharts have order states like Ninja does
in Multicharts for example orders that are sent as one group like an entry with a stop and target would be treated as OCO. Once the stop or target is hit the other order would get cancelled.
Regards,
ABCTG
spinnybobo
Hi Mike
thanks for this video and also for the Ninja one as they both helped me learn.
The one thing that is a little confusing for me is how different Easy Language is from Ninja in terms of setting stops and targets.
With Ninja, you just set it at the beginning. With Easy Language, it seems like you have to set them at the beginning, then again after target1 is hit, then again after target2 is hit.
So my question is will this strategy work Live? Does Easy Language automatically cancel all orders after something is filled?
Does Tradestation/Multicharts have order states like Ninja does