Hi everyone,
I am outlining the structure of some strategy I would like to implement in Easy language and then test on MC. I am not yet using MC but want to move away from TS and I want to have a strategy developed for some ideas I have. Before progressing too far and coming up with my pseudo-code, I wanted to check if the following is possible within MC.
Print Statement:
does the TS Print statement also work in MC? If so, would it be able to print the following into a report which should be stored in a location specified within the strategy:
Security Symbol,
Trade Entry date,
Trade entry time,
Trade exit date,
trade exit time,
trade entry price,
trade exit price,
long or Short trade,
Number contracts traded,
what condition triggered the trade (why placed),
Strategy that executed that trade for when multiple strategies are running at same time,
Max DD of that trade,
Final profit / loss of trade
Money Management:
I want to trade my strategy across 10 different futures and use money management strategy where equal dollar (big point value) risk is shared across all trades / futures. Lets say I risk 2% of equity per trade thus at any one time, I might have 40% equity invested. Can MC and the strategy determine the amount of capital available in my account in order to calculate position sizes?
Questions about Strategy Code ideas in MC
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Questions about Strategy Code ideas in MC
Hello confusedxx,
Yes, you can print the following values into a text file from code of your strategy:
RE: Money Management question - yes, it is possible in MultiCharts Portfolio Trader.
Yes, you can print the following values into a text file from code of your strategy:
- SymbolName
- TradeDate / PosTradeEntryDateTime
- TradeTime / PosTradeEntryDateTime
- TradeDate / PosTradeExitDateTime
- TradeTime / PosTradeExitDateTime
- AvgEntryPrice / PosTradeEntryPrice
- AvgEntryPrice / PosTradeExitPrice
- MarketPosition
- CurrentContracts / MarketPosition_at_Broker
- Yes, it is possible to print conditions.
- No, but you can print SymbolName + BarType_ex
- There is no keyword that returns max drawdown, but you can calculate it on each script execution and update the value if new maximum is reached.
- PosTradeProfit
RE: Money Management question - yes, it is possible in MultiCharts Portfolio Trader.