• Login
  • Register
    • Unanswered topics
    • Active topics
  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


User avatar
mrtools
Head Coder & Moderator
Posts:
14132
Joined:
February 2017
Location:
Earth
Platform:
MT4 and MT5
Indicator:
All
Been thanked:
35685 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;
  • Quote
  • Wed Apr 27, 2022 5:26 am
2 posts
Post Reply

Return to “Coding Help”

User avatar
Re: MACD&RSI
Closed all positions , AUD / USD & USD / CAD
macd & rsi, Sat Oct 11, 2025 2:39 am
User avatar
Re: Traders joking (Memes, Jokes & anything funny
Very non-ecological platforms. You can't do that.
andrei-1, Sat Oct 11, 2025 2:27 am
SLN
Re: Coding Help
Hi all, looking for a martingale ea with adjustabl
SLN, Sat Oct 11, 2025 1:31 am
User avatar
Re: Convert MT4 indicators to MT5
Dear mrtools, Need your assistance to convert thi
matfx, Fri Oct 10, 2025 11:20 pm

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

Login




Register