I am moving all logic to "Signal" side because both categories - Strategy Performance and Accounts & Positions - are designed to work in "Signal".
Nicolas11, you are right, Text_New is working in "Signal" as well.
Regarding the i_ClosedEquity, it returns the profit or loss realized when a position has been closed. Therefore, MC shows "0.00" in "Indicator" when I need it to show the account equity at first place before any position taken.
It is clear that signals in MC cannot use plot . Has anyone else found this frustrating?
I am new to MC and learning, how do you ensure that the indicator data you see on a graph is what is being executed by the signal. Visually I can see entry exit / entry points but translating to signals seems difficult to ensure statefulness of the code without plotting the data to ensure variables and data used in the strategy and the same as what is visible on a chart.
Yup. I've just used a Text String with an _ or - as a dirty workaround, but be careful drawing too many of these on a long historical chart, it can slow down the load time considerably.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post:
1. Create a new indicator and plot it (done)
2. trade that indicator seen on the graph
Can I reference a new indicator or plot 1 and 2 in a signal e.g. plot1 > plot2 so I know it is using the same data?
sorry if this is a silly question
Another workaround in addition to Mike's string is to use lines : TL_New
With one small segment per bar, you obtain... a curve.
But it creates as many drawings as bars: it could become heavy quite rapidly.
I understand your concern that the logic of the signal be the same as the displayed indicator. For me, the cleanest way to do that is to put the code in a function.
In the signal, you use the function.
In the indicator, you plot the function, and nothing more.
This way, you are sure there is no discrepancy between what you see (indicator) and what the signal uses.
Last edited by Nicolas11; April 28th, 2012 at 03:53 PM.
Reason: correction of typo
The master strategy allows you to set different stops and targets for each contract, if you decide to have the same stop for all 3 contracts then that is what you get, 1 stop per contract.
If you don't like to see three stop orders over the same price then choose another strategy.
If you're monitoring the trade, set a stop loss strategy and then put 3 limit orders for your targets. As prices move you adjust the orders.
If I become half a percent smarter each year, I'll be a genius by the time I die
The following 2 users say Thank You to arnie for this post: