Forex



Go Back   Forex Trading > Trading systems > Martingale/Average Cost and Hedging
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

 
 
Thread Tools
 
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
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, 391 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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
 

Bookmarks

Tags
forex
Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subthread: Dolly 2nd Clone Project ANCOLL Dolly 788 09-12-2009 02:41 PM
CCI Filter nnjeim Indicators - Metatrader 4 121 08-15-2009 11:22 PM
Project EA for Dolly 1st and 2nd clone ANCOLL Dolly 63 12-10-2008 10:32 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 01:15 PM.



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