|
|||||||
| 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 |
|
||||
|
Correct order?
Dave, coded in the right order, this works.
Are you sure the sto1 variable is assigned a value before using it in the comment assignment? (So, not the order you are showing in your posting....) To check the sto1 value, include a Print(sto1) statement, to make its actual value showup in the Journal logging.
__________________
Better being out, wishing to be in than being in and wishing to be out..... |
|
||||
|
Quote:
Dave <><<< |
|
||||
|
Try this
Dave, try this: Put the below 3 lines into your existing start body, just like the example below.
The screenshot shows you the result of running this. If you still cannot get it to work in your expert, upload or send me the source, then I will take a look at it. Cheers Code:
int start()
{
double sto1=iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN,0);
Comment("STOCHASTIC VALUE " + DoubleToStr(sto1,4) + "\n");
return(0);
".... existing start() code..."
}
__________________
Better being out, wishing to be in than being in and wishing to be out..... |
|
||||
|
It just started working after I repositioned the code in the sComment section. Maybe it had something to do with how my computer was acting recently. It crashed this morning. I had to reformat the harddrive. At least my program, indicators and knowledge base was backed up on a memory stick - Those things are great! Now on to bigger things! Thanks for all your help!
Dave <><<< |
![]() |
| Thread Tools | |
| Display Modes | |
|
|