| 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 |
|
|||
|
Quote:
Yes and have a good we... |
|
||||
|
Quote:
int results= OrderModify ( ticket, OrderOpenPrice(), sl, OrderTakeProfit(), 0, Red );could be coded or the best perhaps - this will reduce a few CPU cycles return ( OrderModify ( ticket, OrderOpenPrice(), sl, OrderTakeProfit(), 0, Red ) );Daraknor Which one will have less instruction? |
|
|||
|
EASY signal misfiring
I figured out why the EASY signal is not working properly. It is currently taking the haClose value from the very first bar and sticking with it. haClose has to be defined so that it updates on every bar. Any suggestions.
|
|
||||
|
Quote:
if(OrderModify(ticket,OrderOpenPrice(),sl,OrderTak eProfit(),0,Red)!=(-1)) LogError(); No variables needed, and the intended consequence is handled in line next to the event, instead of in a different chunk of code. LogError() basically does a GetLastError() and then write it to a log file. |
|
||||
|
Quote:
Code:
double haClose1 = (PRICE_OPEN + PRICE_HIGH + PRICE_LOW + PRICE_CLOSE)*(0.25); Code:
double haClose1 = (Open[1] + High[1] + Low[1] + Close[1])*0.25; Code:
int barcount; //Global variable at the top of the EA
double haClose1; //Global variable
init()
{ //... all of the normal init information
barcount=Bars;
}
//Indicator code:
if(Bars>barcount)
{
haClose1 = (Open[1] + High[1] + Low[1] + Close[1])*0.25;
barcount=Bars;
}
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Phoenix - Development+Suggestions - MQ4 in Post#1 | daraknor | Phoenix | 424 | 09-09-2008 12:13 AM |
| Phoenix 2007 (new thread) | Hendrick | Phoenix | 1326 | 03-27-2008 11:34 PM |
| Phoenix is here! | Hendrick | Phoenix | 374 | 02-06-2008 04:26 PM |
| Phoenix optimization | Prankie | Phoenix | 173 | 10-17-2007 08:24 AM |
| Expert Advisor Upgrader - Turn Simple Into Superb | Scorpion | Tools and utilities | 7 | 04-13-2007 02:01 AM |