| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi there,
Beside using a template, is there a way that I can transfer object texts from one chart onto another? This is what I have in mind. I have notes i.e. texts on the 4 hours chart and I would use an indicator called "save text". This indicator will save all the text using ObjectGetShiftbyValue and ObjectGet(...., objprop_time). I would then open up a new 1hr chart and attach an indicator called "transfer text". This will populate the new 1hr chart with texts from the 4hrs chart in the approximate location of time and price of the 4hrs chart. Maybe I am making this more complicate than it should be. Any pointers??? Trong |
|
|||
|
Need help, I am trying to combine 2 indicators into 1?
First of all, thanks for any help received.
I am trying to combine a CCI histogram and ADX into one indicator. Not as in overlaying, but the code in one file. Similar to Woodies CCI, Except using the ADX instead of the LSMA. I have started from scratch instead of trying to modify Woodies. I have both of them displaying. The CCI is fine. The ADX I am showing in a lineal fashion using DRAW_ARROW. I have 2 problems: A. I am getting no past history on the ADX. It just starts at the current bar, if I switch time frames it starts over. I would like it to show the previuos 200 bars. B. I want the lineal ADX to align with the Level 0 of the CCI. It currently shows above or below depending on time frame. Thanks again. |
|
|||
|
Help !
I am currently using FXCM and for the past couple of weeks been trying out Metatrader.
I have a problem, a simple one. In my FXCM platform, when I set up the MACD... I get Linear MACD, MACDA and Histogram MACD. However, in the Metatrader, I only got a Histogram and just a line. Anybody can help me out with this problem ? Sorry about my english. |
|
|||
|
Something is wrong?
I'm trying to create an alert everytime the bar makes a new high/low compared to the previous bar. But in someway, it seems to miss some highs/lows. I can't find anything wrong with my code, but at the same time I can't figure out why?
Anyone? Code:
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
bool AlertOnce(int ref)
{
static int NewHigh = 0;
static int FailedHigh = 0;
switch(ref)
{
case 1:
if(NewHigh == 0 || NewHigh < Bars)
{
NewHigh = Bars;
return(true);
}
break;
case 2:
if(FailedHigh == 0 || FailedHigh < Bars)
{
FailedHigh = Bars;
return(true);
}
break;
}
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//----
if(High[0]>High[1] && AlertOnce(1)==true) Alert("1 working");
if(Low[0]<Low[1] && AlertOnce(2)==true) Alert("2 working");
//----
return(0);
}
//+------------------------------------------------------------------+
|
|
|||
|
Check if Order is closed (and some .csv-stuff)
I'm trying to write a snippet that checks if a new trade just closed, and if that's true it will export some values to an csv.
My code looks like this: Code:
datetime current=0;
total = OrdersTotal();
if(total > 0) current = CurTime();
if(current != CurTime()) {
int f = FileOpen(Symbol()+ATRthreshold+".csv", FILE_CSV | FILE_WRITE | FILE_READ,',');
string sDate = TimeToStr(iTime(NULL,0,0),TIME_DATE);
sDate = StringSetChar(sDate,4,'/');
sDate = StringSetChar(sDate,7,'/');
FileSeek(f, 0, SEEK_END);
FileWrite(f,sDate, TimeToStr(iTime(NULL,0,0),TIME_MINUTES), iClose(NULL,0,0), iVolume(NULL,0,0));
FileClose(f);
}
Instead, i get the ea to write to the file every volume-change when an position is open. What have i missed out? And, another question - is it possible to change "," in a csv export to ";"? |
|
||||
|
1) Can anyone help to provide the ea coding to close out all positions just before the market closes on Friday.
2) Also, coding needed to put each ea to sleep at the same time on Friday PM (So it does not open up any new positions) until Sunday PM when it will allow the ea to trade again. My time zone is GMT -6. Many thanks to your generosity in advance! Dave <><<< |
|
|||
|
Error 65 & 128 explanation
Hi, I was hoping someone could help me and explain a couple of errors I received while testing an EA I am writing.
I ran the EA through the night to see if it was working properly and when I woke there were a couple of errors that I can't find an explanation for. Error(65) : Invalid Account Error(128) : Trade Timeout Error(129) : Invalid Price I've never run into these errors before. Does this mean that I was trading on OFF market hours? Please help, thanks Sean EDIT: Never Mind. Didn't realize that the demo account was for only 30days, and just so happens last night was the 30 day mark. my bad Last edited by Sean0; 07-13-2007 at 08:57 PM. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Learning Cycles For New Traders | Dan7974 | General Discussion | 350 | 01-18-2008 06:04 PM |
| Learning to code for autotrading | GoatT | Metatrader Programming | 8 | 01-10-2007 08:55 PM |
| Self learning expert | mrtools | Expert Advisors - Metatrader 4 | 32 | 10-22-2006 05:29 PM |