Forex



Go Back   Forex Trading > Programming > MetaTrader
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

Reply
Thread Tools Display Modes
  #861 (permalink)  
Old 04-26-2008, 10:00 AM
Junior Member
 
Join Date: Apr 2008
Posts: 2
walesoje1 is on a distinguished road
hey

Sorry about that. I don't actually know where exactly to post it since this is a very big website.

Sorry about. I discovered all other posts have been deleted and I guess this is just the perfect place to post.

Sorry for the problems.

Quote:
Originally Posted by Linuxser View Post
And for that do you need to post everywhere in the forum with the same message?
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!
Reply With Quote
  #862 (permalink)  
Old 04-26-2008, 12:53 PM
Senior Member
 
Join Date: Feb 2006
Posts: 587
Michel is on a distinguished road
I think you should have a solution here : MetaTrader FTP client!


Quote:
Originally Posted by sandfromsky View Post
bool SendFTP( string filename, string ftp_path=NULL)
Sends the file to the FTP server set in the Tools->Options->Publisher tab. If the attempt fails, it retuns FALSE.
The function does not operate in the testing mode. This function cannot be called from custom indicators, either.



When SendFTP in custom indicators, it's can't work, but can in scripts.

I tried your method, put my function into a .mph file, and save it into experts\include, it result error No. 4055.



TestFTPInc.mqh

int FTPTest()
{
SendFTP("shots\\" + Symbol() + "_5m_live.gif", NULL);
Alert(GetLastError());
return(0);
}

In my custom indicators, I call it like

if (IsNewBar())
{
WindowScreenShot("shots\\" + Symbol() + "_5m_live.gif", 640, 480);
FTPTest();
}

it result error No. 4055.

Thanks a lot. Have a happy weekend.
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!
Reply With Quote
  #863 (permalink)  
Old 04-27-2008, 03:48 AM
sandfromsky's Avatar
Junior Member
 
Join Date: Feb 2007
Posts: 13
sandfromsky is on a distinguished road
Quote:
Originally Posted by Michel View Post
I think you should have a solution here : MetaTrader FTP client!


Thanks, I'm the #7.

ERROR: The handle is invalid
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!
Reply With Quote
  #864 (permalink)  
Old 04-27-2008, 08:13 AM
Junior Member
 
Join Date: Nov 2007
Posts: 21
derumuro is on a distinguished road
How to code ?

Hi all,

who can think of the program ?

- if Buy-Signal : open Buy-Order 1; 2; 3; ( I must wait if I will open several orders ? wait or sleep ?)
- if Sell-Signal : close Order 1
- if Sell-Signal 2 && close Order 1: close Order 2 & 3

Send PM?

Thanks
derumuro
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!
Reply With Quote
  #865 (permalink)  
Old 04-27-2008, 12:13 PM
sandfromsky's Avatar
Junior Member
 
Join Date: Feb 2007
Posts: 13
sandfromsky is on a distinguished road
Quote:
Originally Posted by sandfromsky View Post
Thanks, I'm the #7.

ERROR: The handle is invalid


I can use a FTP client to finish this work. For example, "Super Flexible File Synchronizer". Make screen shot .gif first, use FTP client upload it realtime.

I think I am not a fool man.
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!
Reply With Quote
  #866 (permalink)  
Old 04-30-2008, 04:31 AM
wolfe's Avatar
Senior Member
 
Join Date: Jan 2006
Posts: 818
wolfe is on a distinguished road
Does anyone know how to code so that when you call an indicator in an EA it automatically attaches the called indicator to the chart your EA is attached to? This way it would visually be in the exact same time as what is being read by your EA.

Thanks.
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!
Reply With Quote
  #867 (permalink)  
Old 04-30-2008, 03:45 PM
Senior Member
 
Join Date: Feb 2007
Posts: 986
FerruFx is on a distinguished road
Quote:
Originally Posted by wolfe View Post
Does anyone know how to code so that when you call an indicator in an EA it automatically attaches the called indicator to the chart your EA is attached to? This way it would visually be in the exact same time as what is being read by your EA.
You must attach both EA and indicator unless the indy is coded inside the EA.

FerruFx
__________________
FerruFx / www.ervent.net - Professional Coding Services (EAs/Indicators/Alerts)

BBVPS.com - Reliable Windows VPS For MT4 Hosting
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!
Reply With Quote
  #868 (permalink)  
Old 05-04-2008, 12:02 AM
ak97052d's Avatar
Junior Member
 
Join Date: Apr 2006
Location: Ukraine
Posts: 25
ak97052d is on a distinguished road
Help

hello
how to code this:
I need to extract some info from last closed trade,
and after use some info from this last trade
ex:
if last trade profit >0 'lasttradeprofit = 1'

and if last trade <=0 'lasttradeprofit = 0'

lasttradeprofit = 1 // if last trade >0
lasttradeprofit = 0 // if last trade <=0

thanks
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!
Reply With Quote
  #869 (permalink)  
Old 05-04-2008, 06:34 AM
Member
 
Join Date: Mar 2007
Posts: 43
flourishing is on a distinguished road
why comment(2 / 1) display 2 but comment( 1 / 2) display 0?

how to make comment(1 / 2) display 0.5 ?
thank you.
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!
Reply With Quote
  #870 (permalink)  
Old 05-04-2008, 07:41 AM
nittany1's Avatar
Senior Member
 
Join Date: Dec 2006
Location: Sarasota, FL
Posts: 207
nittany1 is on a distinguished road
I threw together an adjust trailing stop function for EAs, can someone check it out?

Code:
//+-----------------------------------------------------+
//|           adjust trailing stop                      |
//+-----------------------------------------------------+
void AdjustTrailingStop()
{
  int orders = OrdersTotal();
  for(int j=orders-1;j>=0;j--)
  {
    OrderSelect(j, SELECT_BY_POS);
    int type = OrderType();
    //-- Adjust trailing stop for BUYs
    if (type == OP_BUY && OrderSymbol()==Symbol() && (OrderMagicNumber() == MagicNumber))
    {
      if (Ask-TrailingStop*Point > OrderOpenPrice() && Ask-TrailingStop*Point > OrderStopLoss())
        {
          OrderModify(OrderTicket(),OrderOpenPrice(),Ask-TrailingStop*Point,OrderTakeProfit(),0);
        }  
    }
    //-- Adjust trailing stop for SELLs
    if (type == OP_SELL && OrderSymbol()==Symbol() && (OrderMagicNumber() == MagicNumber))
    {  
      if (Bid+TrailingStop*Point < OrderOpenPrice() && Bid+TrailingStop*Point < OrderStopLoss())
        {
          OrderModify(OrderTicket(),OrderOpenPrice(),Bid+TrailingStop*Point,OrderTakeProfit(),0);
        } 
    }
  }
}
__________________
The best things in life come from open source development.
Myspace Facebook My Indicators: Trade Assistant Trend Friend ToR CCI Helper
Holder of US Patent 6,774,788
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!
Reply With Quote
Reply

Bookmarks

Tags
#include, candle time, CHinGsMAroonCLK, code, coders guru, conditionally, dll, eli hayun, Eur_harvester.ex4, expert adviser, expert advisor, forex, higher high, how to code, indicator, I_XO_A_H, kehedge, mechanical trading, metatrader command line, mt4, MT4-LevelStop-Reverse, OrderReliable.mqh, programming, rectangle tool, trading, volty channel stop


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 05:22 PM


All times are GMT. The time now is 07:11 PM.



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