• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 12:27am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 12:27am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Basic Alt Key/Entry Script - Simplest Script Ever 1 reply

Code my order creation script. 7 replies

i like to add an indicator script into my own script. what would be the best idea? 3 replies

Anyone can help me code this script? 4 replies

What's wrong with this IBFX script code? 6 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: Script code question
Exit Attachments

Script code question

  • Post #1
  • Quote
  • First Post: Jul 10, 2012 10:19am Jul 10, 2012 10:19am
  •  cja
  • Joined Feb 2007 | Status: Member | 1,848 Posts
I have a script for opening and closing trades and if used on the strategy tester it opens and closes trades on the live chart which is not something that I want to happen, does anyone here know of a way to program a script so that it will not function on the strategy tester but will work on a normal chart. I have had a play with the IsTesting() function but the script either works on everything or nothing.

Thanks in advance for any help.
Trade what you see not what you hope
  • Post #2
  • Quote
  • Jul 10, 2012 12:31pm Jul 10, 2012 12:31pm
  •  MaxDoom
  • | Commercial Member | Joined Feb 2010 | 13,567 Posts
Quoting cja
Disliked
I have a script for opening and closing trades and if used on the strategy tester it opens and closes trades on the live chart which is not something that I want to happen, does anyone here know of a way to program a script so that it will not function on the strategy tester but will work on a normal chart. I have had a play with the IsTesting() function but the script either works on everything or nothing.

Thanks in advance for any help.
Ignored

Not sure that you can use scripts in strategy tester the tester is designed for EA's
 
 
  • Post #3
  • Quote
  • Last Post: May 7, 2015 7:25am May 7, 2015 7:25am
  •  Elprofit
  • | Joined May 2015 | Status: Junior Member | 1 Post
Hello,need help concerning the EA.I want this to be added..

1)Maximum trades allowed.Default value could be any figure eg 50
2) If trades opened is up to Max trades allowed,then force all to close.

The way EA works is more trades are opened with bigger lot sizes to make up for loosing trades when market undergoes correction.It is good to have such condition all the time,but in practice ,it is not so.That is why the need for MAX trades and force to close when it is reached.

Thanks
Attached File
File Type: mq4 MartingailExpert_v1.0_Stochastic.mq4   9 KB | 104 downloads
 
 
  • Platform Tech
  • /
  • Script code question
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2022