Coding help - page 108

 

Incredible! I managed to make my own based on stoch at 1 before I got your second post, but thank you so much. Thats really greatly appreciated. and no 6gig log files

 
mladen:
zigflip

This one should work OK (it is a rewritten and a bit modernized (that one was written long time ago )).

PS: the problem in the code was the timeFrame parameter. It was defined as string and used in a place where an integer type parameter was expected in the iStochastic() call

Dear Mladen

Sorry for requesting about decompiled code it seems like Stochastic on chart with bands !

When i compiled it gives 4 warnings so is it ok with it ? Can it be cured ?

Thanks for any help

secretcode

Files:
 
secretcode:
Dear Mladen

Sorry for requesting about decompiled code it seems like Stochastic on chart with bands !

When i compiled it gives 4 warnings so is it ok with it ? Can it be cured ?

Thanks for any help

secretcode

secretcode

Sorry, but I really told a lot of times that I will not alter any decompiled code

If you can find an original code I will be more than happy to help

 
mladen:
secretcode

Sorry, but I really told a lot of times that I will not alter any decompiled code

If you can find an original code I will be more than happy to help

Mladen

Really sorry for your time wasting

Sincerely

secretcode

 

Hello Mladen,

lets assume that we have 2 indic,a and b, one is on chart, the other is on seperate. i would like to create a new one from these, that is c.

conditions : if (a>level1 and b>level2) buy arrow on the chart;

else

if (a<level1 and b<level2) sell arrow on the chart;

else

flat

 
anonimm:
Hello Mladen,

lets assume that we have 2 indic,a and b, one is on chart, the other is on seperate. i would like to create a new one from these, that is c.

conditions : if (a>level1 and b>level2) buy arrow on the chart;

else

if (a<level1 and b<level2) sell arrow on the chart;

else

flat

anonimm,

The simplest way to do that what yo describe would be to create a 3rd indicator and then to retrieve the values from indicators a and b using iCustom() function.

 

sequencer_v1_3_rh.mq4

hello Mladen sir,

can u pls look on it?

TSL option is not working

Buy price: ( I will manually input and Buy stop will be placed)

Sell Price: ( I will manually input and Sell stop will be placed)

TP: I will manually input the pips eg. 20 pips

SL: I will manually input the pips eg. 20 pips

Breakeven : True/False

Breakeven Pips: I will manually input the pips eg. 20 pips

Trailing Stoploss: True/False

Trailing Stoploss Pips: I will manually input the pips eg. 20 pips

Slippage in Pips: I will manually input the pips

Broker Spread: I will manually input the pips and EA will calculate it

Magic Number: for Mutlipair functionality

****

Hedging portion (most important):

A hedge stop order (buy stop at SL for a triggered sell entry and Sell stop for a triggered buy entry) will be placed.

This Stop order will change if Trailing stoploss is advances.....!

so, if TSL is changing......it will change too!

for example:

intial buy 1.23500

initial SL 1.23200

TSL: 20 pips

a sell stop will be placed in the SL level

say profit happened 20 pips @1.23700

so, TSL will move to 1.23500

then the initial sell stop will come to 1.23500 (new TSL) from initial SL

Files:
info.mq4  5 kb
log.mq4  4 kb
 
rakibhasan2020:
sequencer_v1_3_rh.mq4

hello Mladen sir,

can u pls look on it?

TSL option is not working

Buy price: ( I will manually input and Buy stop will be placed)

Sell Price: ( I will manually input and Sell stop will be placed)

TP: I will manually input the pips eg. 20 pips

SL: I will manually input the pips eg. 20 pips

Breakeven : True/False

Breakeven Pips: I will manually input the pips eg. 20 pips

Trailing Stoploss: True/False

Trailing Stoploss Pips: I will manually input the pips eg. 20 pips

Slippage in Pips: I will manually input the pips

Broker Spread: I will manually input the pips and EA will calculate it

Magic Number: for Mutlipair functionality

****

Hedging portion (most important):

A hedge stop order (buy stop at SL for a triggered sell entry and Sell stop for a triggered buy entry) will be placed.

This Stop order will change if Trailing stoploss is advances.....!

so, if TSL is changing......it will change too!

for example:

intial buy 1.23500

initial SL 1.23200

TSL: 20 pips

a sell stop will be placed in the SL level

say profit happened 20 pips @1.23700

so, TSL will move to 1.23500

then the initial sell stop will come to 1.23500 (new TSL) from initial SL

Try using greater trailing stop loss.

Default TrailingStop parameter is set to 80 points (not pips, but points) which is for most 5 digit brokers too close to the current price

 

BOLL BANDS and STOC linked togheter

Hello,

I need the following indicator to put in the same window of color stochastic:

during trend bollinger bands become widen.....then trend stops and there is treding range.During trading range bollinger bands contract and in this situation is very good stoc oversold.

It occours:

1) bollinger band width 71 and std 2

2) sma 15 of bollinger band width

3) stoc 5-3-3

EXPLANATION:

when bbw cross below its sma15 and for 5 bars after

and

when stoc is <=30

indicator is 80...otherwise is 20

input for color and for level (20-80)

thank's in advance

 

Hi fabian103,

To make it easier to help you learn coding for your EA....here are a few basic techniques for tracking your code:

1) Always check your error logs for your main clues. They will tell you a lot.

2) You can add PRINT statements sent to your logs and COMMENT statements displayed right on the chart. Put them everywhere in your program code so you can see and track each step of your EA...in both your logs and on your screen chart.

3) Formatting your code - make sure your brackets are aligned in each function so you can see if you are missing a bracket or two.

4) Check out the many good working EA's that have the functions you need...and then compare them with what you have. Make the changes you need to get it working.

5) Compile Errors - if your code has Compile Errors...always start fixing the top errors in the list...all the rest may go away once those are fixed. Fix the first one...then re-compile again and continue the process until it compiles correctly.

Hope this helps you get started in finding more clues to get your EA working...

Robert

Reason: