Без кейворда
The ultimate porfolio management solution.
Shares, Margin, CFD's, Futures and Forex EOD and Realtime Dividends and Trust Distributions And Much More . WiseTrader Toolbox#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators Advanced Pattern Exploration Neural Networks And Much More . Trade Once A Month for Amibroker (AFL) about 5 years ago 5 / 5 (Votes 1)You can use this “switch code” to trigger a trade that will execute only once a month.
Indicator / FormulaThis can be used as part of your trading system
/////Month Switch MonthCalc = Month(); newMonth = MonthCalc != Ref(Month(),-1); monthswitch = 0; monthswitcharray[0] = monthswitch[0]; for( j = 1; j < BarCount; j++ ) < monthswitch = monthswitcharray[j-1]; if(newmonth[j] == 1) < monthswitch = 1; >if (monthswitch == 0) < Buy[j] = 0; Short[j] =0; >if (Buy[j] OR Short[j]) < monthswitch = 0; >monthswitcharray[j] = monthswitch; > 3 comments 1. singhmen about 5 years agoNo chart display from this code
2. sersev about 5 years ago /////Month Switch MonthCalc = Month(); newMonth = MonthCalc != Ref(Month(),-1); monthswitch = 0; monthswitcharray[0] = monthswitch[0]; for( j = 1; j < BarCount; j++ ) monthswitch = monthswitcharray[j-1]; if(newmonth[j] == 1) monthswitch = 1; > if (monthswitch == 0) Buy[j] = 0; Short[j] =0; > if (Buy[j] OR Short[j]) monthswitch = 0; > monthswitcharray[j] = monthswitch; 3. dominhy about 5 years ago Leave CommentPlease login here to leave a comment.