TEMA Cross +HTF Backtest

This is a follow up to a previous script release called "TEMA Cross Backtest".

This new strategy uses two TEMA crosses, one for trend direction, one for entry and exit. The entry and exit parameters are the same as the previous script. The trend direction is based on a user configurable higher timeframe TEMA cross which determines when to take longs or shorts. When the indicator is purple, it is looking for shorts, and when it is yellow, it is looking for longs. The background of the chart is colored accordingly to see the trend direction at a glance.

The default settings are the ones I have found produce the highest backtest results. The backtest is set by default to use a $500 account, and use $500 for every entry and exit, no matter the direction or overall profit/loss.

Parts of script borrowed from other public scripts.

ملاحظات الأخبار: Remove repaint using code from
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟


Hi, repaint signals whith htf resolution ?
Seltzer_ atoronjo
@atoronjo, I don't think so. I added the barmerge commands, which I read eliminate or reduce repainting. I could be wrong though.
@Seltzer_, No. The HTF MA repaints, look after each candle close, and look at bar replay mode.
Seltzer_ CommanderShepard
@CommanderShepard, yes, i see now. I've updated the script with code snippets from PineCoders to remove repaint.
atoronjo Seltzer_
@Seltzer_, Good job, thanks for share.
this is not bad at all. good job.