How to code? - page 142

 
daytrade5:
I had this study when trading in the futures market with Esignal. I have not been able to find it on any forum in the forex.

I would like to be able to color bars based on the high or low regardless of the close except in the case of outside/inside bars which would have their own seperate color.

Attached is an example of what I'm looking for.

thanks

Ok, so with this system your looking only at the High and Low rather than Open and Close, correct?

Outside bar = high and low of bar is greater than the previous bar high and low

Inside bar = high and low of bar is less than the previous bar high and low

What's the bottom indicator?

 

sorry double post

 

its ok I found the answer

 

Has anyone written some good, or found a good way in an EA or script,

to check if trading is not allowed? I have a script that is in a

constant loop (instead of relying on ticks) but it keeps looping even

when market is open and I am trying to figure out a good way to have

it break out of the loop.

I though IsTradeAllowed might work, but it looks like it could be

triggered even when market is opened and has a different meaning.

 

Help with Indicator Error Please

Hi

When I load the following indicator I get an error message in the "Experts" tab "unknown subwindow number -1 for ObjectCreate function". Can anyone please try and correct this. Many thanks

Best rgds

 

Ziagzag Valuse

I want to store these valuse which in mentioned in chart high 1, high2, ..... please look attached EA code

i want these valus for further use plot Supp/Res Level, fib levels, trendlines, etc.

Files:
 

need help with little EA mod

hi,

can someone edit that EA to close all lots at same time. I don't need function "close_lots". EA must close full position at x pips.

Files:
 

how to stop ea intelligently and auotmatically?

how to stop ea intelligently and auotmatically?

i try to use below sentence:

if (pr<-600) Istradeallowed () = false;

but it didn't succeed

how can i do this, which api(function) that i should use??

THANKYOU

 

how to PRINT the error_string?

when open/ close/ modify order occur error , it hv a code,

error=GetLastError();

Print("LastError = ",error)

but i want to print the error_string~ ~

what the sentence is??

THANKYOU

 

How to check few minutes before bar close

Looking for a way to check a few minutes before bar close. Was going to use something like this;

if ((Period()*60) - 4 > (Period()*60) - 5) {close();}

but need a way to check Timecurrent in seconds how much time has past then close all trade a few minutes before bar close.

Reason: