• Login
  • Register
    • Unanswered topics
    • Active topics
    • Forex Calendar
  1. Home
  2. Board index
  3. Coding Help

How To Restrict An Indicator To Work Only In Strategy Tester?

Post Reply
  1. Home
  2. Board index
  3. Coding Help
2 posts
Display posts from previous
Sort by
  • Print view
User avatar
logicgate
Banned (Spamming)
Posts:
32
Joined:
June 2019
Location:
Brazil
Platform:
MT4 / MT5 / Sierra Chart
Indicator:
Forex Master Pattern, Heikin Ashi
Been thanked:
17 times

How To Restrict An Indicator To Work Only In Strategy Tester?

1 by logicgate
Hi there guys, is there a piece of code example somewhere - like a standard template - I can just copy and paste into mine and restrict the indicator to work only on the strategy tester, as a demo?

Best regards
Alberto Gauer Borrego seller on MQL5 aka Rogue_Trader / LogicGate / Gauer
  • Quote
  • Wed Apr 27, 2022 3:54 am


mrtools
mrtools
Moderator
Posts:
14347
Joined:
February 2017
Location:
Not heribus!
Platform:
MT4 and MT5
Indicator:
All
Been thanked:
36697 times

Re: How To Restrict An Indicator To Work Only In Strategy Tester?

2 by mrtools
logicgate wrote: Wed Apr 27, 2022 3:54 am Hi there guys, is there a piece of code example somewhere - like a standard template - I can just copy and paste into mine and restrict the indicator to work only on the strategy tester, as a demo?

Best regards
Not sure but try this.

Code: Select all

if (!IsTesting())return;
Shalom Shalom! :hug:
  • Quote
  • Wed Apr 27, 2022 5:26 am
2 posts
Post Reply

Return to “Coding Help”

User avatar
Re: Something interesting please post here (Metatr
Hi Finsburypark2, great work. You didn't need to
Pucmola, Mon Nov 23, 2026 3:06 am
User avatar
Re: What kind of music do you listen to during tra
Yes, fascinating like Nietzsche's abyss my frien
Cagliostro, Mon Nov 23, 2026 1:55 am
User avatar
Re: Something interesting please post here (Metatr
🚀 FINSBURY TRADING SYSTEM H1+H4 – +6,683 PIPS GENE
Finsburypark2, Mon Nov 23, 2026 1:41 am
User avatar
Re: Paid non-repainting trading systems
btcusd daiy chart sinus wave strong buy sell
guner, Mon Nov 23, 2026 12:47 am

  • Home
  • Who are we?
  • Media Kit
  • All times are UTC+11:00
  • It is currently Mon Nov 23, 2026 3:21 am
Powered by phpBB® & Gramziu - Web Ops By SiteSplat, Forex Station ©2016 - 2026Your data is secure with us

Login




Register