Pause Strategy when win X% or loss X%.
Forums › ProRealTime English forum › ProOrder support › Pause Strategy when win X% or loss X%.
- This topic has 9 replies, 2 voices, and was last updated 3 years ago by Fran55.
Viewing 10 posts - 1 through 10 (of 10 total)
-
-
11/12/2020 at 3:44 PM #15030511/12/2020 at 7:42 PM #150328Monthly strategy123456789101112131415161718192021222324// Monthly strategy//DEFPARAM CumulateOrders = falseONCE TradeON = 1ONCE WinLoss = 10ONCE Capital = 10000ONCE PrevEquity = CapitalCurrEquity = Capital + StrategyProfitIF Month <> Month[1] THENTradeON = 1PrevEquity = CurrEquityENDIFTempProfit = (CurrEquity - PrevEquity) * 100 / PrevEquityIF abs(TempProfit) >= WinLoss THENTradeON = 0ENDIFIF close crosses over average[100] and TradeON thenbuy at marketset target pprofit 200set stop ploss 200endifif close crosses under average[100] and longonmarket thensell at marketendifWeekly strategy123456789101112131415161718192021222324// Weekly strategy//DEFPARAM CumulateOrders = falseONCE TradeON = 1ONCE WinLoss = 10ONCE Capital = 10000ONCE PrevEquity = CapitalCurrEquity = Capital + StrategyProfitIF DayOfWeek < DayOfWeek[1] THENTradeON = 1PrevEquity = CurrEquityENDIFTempProfit = (CurrEquity - PrevEquity) * 100 / PrevEquityIF abs(TempProfit) >= WinLoss THENTradeON = 0ENDIFIF close crosses over average[100] and TradeON thenbuy at marketset target pprofit 200set stop ploss 200endifif close crosses under average[100] and longonmarket thensell at marketendif
You can change the % (WinLoss) and the starting Capital as suits you best.
11/12/2020 at 8:37 PM #15033311/13/2020 at 4:07 PM #15039211/13/2020 at 4:32 PM #150399You wrote win X% or loss X%.
I’ll change it soon.
11/13/2020 at 6:22 PM #15040511/13/2020 at 6:36 PM #150406There you go:
Monthly strategy12345678910111213141516171819202122232425// Monthly strategy//DEFPARAM CumulateOrders = falseONCE TradeON = 1ONCE PerCentLoss = 3ONCE PerCentWin = 5ONCE Capital = 10000ONCE PrevEquity = CapitalCurrEquity = Capital + StrategyProfitIF Month <> Month[1] THENTradeON = 1PrevEquity = CurrEquityENDIFTempProfit = (CurrEquity - PrevEquity) * 100 / PrevEquityIF (TempProfit <> 0) AND ((TempProfit >= PerCentWin) OR (TempProfit <= PerCentLoss)) THENTradeON = 0ENDIFIF close crosses over average[100] and TradeON = 1 thenbuy 1 contract at marketset target pprofit 200set stop ploss 200endifif close crosses under average[100] and longonmarket thensell at marketendifWeekly strategy12345678910111213141516171819202122232425// Weekly strategy//DEFPARAM CumulateOrders = falseONCE TradeON = 1ONCE PerCentLoss = 2ONCE PerCentWin = 6ONCE Capital = 10000ONCE PrevEquity = CapitalCurrEquity = Capital + StrategyProfitIF DayOfWeek < DayOfWeek[1] THENTradeON = 1PrevEquity = CurrEquityENDIFTempProfit = (CurrEquity - PrevEquity) * 100 / PrevEquityIF (TempProfit <> 0) AND ((TempProfit >= PerCentWin) OR (TempProfit <= PerCentLoss)) THENTradeON = 0ENDIFIF close crosses over average[100] and TradeON = 1 thenbuy at marketset target pprofit 200set stop ploss 200endifif close crosses under average[100] and longonmarket thensell at marketendif11/13/2020 at 9:08 PM #15041911/13/2020 at 10:28 PM #150425At line 5 use a negative PerCentage, -2 or -5, or anything else.
11/14/2020 at 6:10 AM #150452 -
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
Find exclusive trading pro-tools on
Similar topics: