Forex
Google
New signals service!

Go Back   Forex Trading > Trading systems > Martingale/Average Cost and Hedging


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (12) Thread Tools Display Modes
  #121 (permalink)  
Old 12-22-2006, 07:46 AM
Senior Member
 
Join Date: Nov 2006
Posts: 299
abrs70 is on a distinguished road
Quote:
Originally Posted by Aaragorn
Ok, here is my latest version of this. I added a spread block to it which is hard coded for 2 pips. I'm watching it run forward on IBFX today and they are as typical widening the spread to 6 pips. This version simply won't open a position unless the spread is 2 pips or less. Hah! I just won't play their game. When the spread comes back in line the program will allow trades.
hey...i got this error on Northfinance.... error of short entry 131... whats up dude?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #122 (permalink)  
Old 12-22-2006, 07:07 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Quote:
Originally Posted by abrs70
hey...i got this error on Northfinance.... error of short entry 131... whats up dude?
ERR_INVALID_TRADE_VOLUME 131 Invalid trade volume.

is your account set to allow microlots of 0.01? if not then your smallest lot allowed might be 0.1?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #123 (permalink)  
Old 12-22-2006, 07:22 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Quote:
Originally Posted by abrs70
can i run on 3 spread broker? can i run on micro?
These settings are the way I am running right now on fxdd...

also I have changed this part of the code from 0.0002 ...

PHP Code:
  if(Ask-Bid>0.0002)
   {
      
ObjectDelete("spread");
      
ObjectCreate("spread"OBJ_TEXT0Time[110], Low[0]+(10*Point));
      
ObjectSetText("spread","Spread Blocked  "+DoubleToStr(Ask-Bid,4),18,"Arial",White);
      return(
0);
   }
  if(
Ask-Bid<=0.0002)
   {
      
ObjectDelete("spread");
      
ObjectCreate("spread"OBJ_TEXT0Time[110], Low[0]+(10*Point));
      
ObjectSetText("spread","Spread Allows "+DoubleToStr(Ask-Bid,4),18,"Arial",White);
   } 
to an external variable you can set as you wish for the spread blocking.
PHP Code:
  if(Ask-Bid>MaxSpread)
   {
      
ObjectDelete("spread");
      
ObjectCreate("spread"OBJ_TEXT0Time[110], Low[0]+(10*Point));
      
ObjectSetText("spread","Spread Blocked  "+DoubleToStr(Ask-Bid,4),18,"Arial",White);
      return(
0);
   }
  if(
Ask-Bid<=MaxSpread)
   {
      
ObjectDelete("spread");
      
ObjectCreate("spread"OBJ_TEXT0Time[110], Low[0]+(10*Point));
      
ObjectSetText("spread","Spread Allows "+DoubleToStr(Ask-Bid,4),18,"Arial",White);
   } 
I have seen when I was running with it set at 0.0002 and the spread was 0.0002 that it blocked it. or at least it left the Blocked message on the chart. I'm not sure which. it won't change the display on the chart until a subsequent tick which is within the range changes the message. But I am running my setting at 0.0003 to allow one pip variance on a two pip spread. That way I'm sure not to block a two pip situation.

I have no explaination for why it blocked at 0.0002 sometimes. The code should allow it if it equals the max spread specified. You can see for yourself that I put <= in the condition and if that condition is true then allow it.

perhaps the spread is varying larger than the max spread specified by a factor of 0.00001 or something and blocking because it's so slightly larger not a full pip??? I don't really know. I'm just going to allow one extra pip for wiggle room and not worry about it at this point.

I have made this change so you can set it for whatever you want including how ever many decimals you want to specify 0.00001 or whatever.


did I just do what I think I did? oy...sorry wrong thread...
Attached Files
File Type: mq4 Cyberia Trader 1.95 SR Euro-variableSB.mq4 (101.8 KB, 336 views)

Last edited by Aaragorn; 12-22-2006 at 07:54 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #124 (permalink)  
Old 12-22-2006, 07:28 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Please accept my apologies. I got my threads confused. I have been posting CT upgrades on the multilotscalper thread! geeze....Well you have the CT stuff. I've been a little overwhelmed with programming lately and changing brokers and all. Maybe I'm getting senile? lol

yes indeed, human error still alive and well, no wonder I want an ea doing the trading for me eh?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #125 (permalink)  
Old 12-23-2006, 08:08 PM
Senior Member
 
Join Date: Nov 2006
Posts: 299
abrs70 is on a distinguished road
Thanks a lot....

I am not familiar with CT. This is my first time to test. May i know a bit about the entry rule n stuff? When i attach the EA, there will be trendlines drawn and a lot of information. Also arrows showing UP. Are they related to entry signal?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #126 (permalink)  
Old 12-24-2006, 12:29 AM
Senior Member
 
Join Date: Dec 2005
Posts: 130
Pecunia non olet is on a distinguished road
Quote:
Originally Posted by abrs70
...I am not familiar with CT. This is my first time to test. May i know a bit about the entry rule n stuff?
Great question, but the answer is a little, umm, "abstruse":

Great EA in backtest!

CyberiaTrader Open Source
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
forex

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/martingale-average-cost-hedging/3513-ml1-multi-lot-clone-based-sma-filter.html
Posted By For Type Date
ML1 - Multi Lot clone based on SMA filter This thread Refback 01-24-2008 01:53 PM
ML1 - Multi Lot clone based on SMA filter This thread Refback 01-05-2008 07:54 PM
ML1 - Multi Lot clone based on SMA filter This thread Refback 12-27-2007 12:22 AM
ML1 - Multi Lot clone based on SMA filter This thread Refback 11-22-2007 08:36 PM
ML1 - Multi Lot clone based on SMA filter This thread Refback 10-25-2007 08:18 PM
ML1 - Multi Lot clone based on SMA filter This thread Refback 08-26-2007 07:18 PM
Forex - systemy i strategie :: ML1 - Multi Lot clone based on SMA filter Fatboy , ecopuf, Pufy Fotele,Puffy,Fatty,pufy pod nogi This thread Refback 07-30-2007 07:28 PM
ML1 - Multi Lot clone based on SMA filter This thread Refback 07-30-2007 04:06 AM
ML1 - Multi Lot clone based on SMA filter This thread Refback 07-12-2007 10:13 PM
ML1 - Multi Lot clone based on SMA filter This thread Refback 07-04-2007 09:36 PM
ML1 - Multi Lot clone based on SMA filter This thread Refback 06-24-2007 07:50 PM
ML1 - Multi Lot clone based on SMA filter This thread Refback 06-21-2007 07:28 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subthread: Dolly 2nd Clone Project ANCOLL Dolly 753 11-23-2008 11:48 PM
CCI Filter nnjeim Indicators - Metatrader 4 69 11-03-2008 09:25 AM
Project EA for Dolly 1st and 2nd clone ANCOLL Dolly 62 05-08-2008 06:35 PM
Multi EAs, multi brokers, same computer hhsmoney General Discussion 6 11-16-2006 09:32 PM


All times are GMT. The time now is 07:38 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.