Search found 5 matches

by jt404
18 Aug 2017
Forum: MultiCharts
Topic: PowerLanguage for Backtesting Multiple Signals
Replies: 11
Views: 2826

Re: PowerLanguage for Backtesting Multiple Signals

Thanks, sptrader. Here's the corrected version of my last post: Okay, so it seems like the closest thing to what I'm looking for would be the following: ChangeMarketPosition(#, price, name) or I could combine a signal with the other conditions I have already laid out, such as: "MarketPosition" //Thi...
by jt404
17 Aug 2017
Forum: MultiCharts
Topic: PowerLanguage for Backtesting Multiple Signals
Replies: 11
Views: 2826

Re: PowerLanguage for Backtesting Multiple Signals

Okay, so it seems like the closest thing to what I'm looking for would be the following: ChangeMarketPosition(#, price, name) or I could combine an indicator with the other conditions I have already laid out. Possible indicators: "i_MarketPosition_at_Broker_for_The_Strategy" "i_MarketPosition" "-_Ma...
by jt404
01 Aug 2017
Forum: MultiCharts
Topic: PowerLanguage for Backtesting Multiple Signals
Replies: 11
Views: 2826

Re: PowerLanguage for Backtesting Multiple Signals

inputs: Price( Close ), FastLength( 51 ), MedLength( 105 ), SlowLength( 161 ), Unit.value( 10000 ) ; variables: var0(0), var1(0), var2(0), shares.to.trade( 0 ), shares.to.trade3( 0 ) ; var0 = AverageFC( Price, FastLength ) ; var1 = AverageFC( Price, MedLength ) ; var2 = AverageFC( Price, SlowLength...
by jt404
31 Jul 2017
Forum: MultiCharts
Topic: PowerLanguage for Backtesting Multiple Signals
Replies: 11
Views: 2826

Re: PowerLanguage for Backtesting Multiple Signals

Code is now in a code box.
by jt404
27 Jul 2017
Forum: MultiCharts
Topic: PowerLanguage for Backtesting Multiple Signals
Replies: 11
Views: 2826

PowerLanguage for Backtesting Multiple Signals

I am trying to write the code for a trading strategy using moving averages (as well as bollinger bands and stochastic lines) in order to perform backtesting and am struggling with one specific aspect of PowerLanguage. I have scoured the discussion forums for guidance in regards to my specific issue ...

Go to advanced search