Ask! - page 116

 

Hola

i want to close my position only if i'm in gain is this possible?

where i wrong?

for(cnt=0;cnt<total;cnt++)

{

//Seleziono quell'ordine

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);

if(OrderType()<=OP_SELL && // check for opened position

OrderSymbol()==Symbol()) // check for symbol

{

if(OrderType()==OP_BUY) // long position is opened

{

if(OrderProfit() > 0,64$

{

if ( ... = true)

{

priceclose=OrderOpenClose;

OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); // close position

lastgainl=OrderProfit();

lastclodeprice=OrderClosePrice();

//close my position[/CODE]

There is any Onlineinformation when i use a parameter like Help or other thing in metaeditor maybe push F12 and i can see the info about parameter like other debugger on C compilator?

Question:

-Is possible to have the gain in pip?like 50 pip and not in $?

-How i close the position only is in gain?

-Why if i print in comment "lastclosedprice" i can't see nothing?

Part 2

I want to take a long/short only just prime on current time frame break 40 EMA

And if cross the price don't close so far like max 10/12 pip if not i put a limit order at moving avrege price

[CODE]

if(long==0 && LastClosedBar != Time[0] && Ask >= MA_40 && minprevius = MA_40)

// so entry long is right???Thanks for Help

Beacuse this sistem not cath all entry conditions

 

As you can see from the pic.

According to the rules,

AC>0 && RSI>50 BUY

AC<0&&RSI<50 SELL

The indicator suppose to tigger BUY signals @ line 1,line 2 and line 3.....

but due to my limiting in coding of metatrader,It only trigger at line 1.

I do not know how to program the indicator to trigger another BUY signals @ line 2 and 3...I have some coding issue in looping...

Please Help me out!!!

I attach the same v2.11 beta indicator..

Files:
 

I was wondering if it might be possible to take two types of code and combine them. I need to take the money management system (MM) from a martiangle EA, and apply it to a "Close ALL Profit Loss" EA. I am trying to get the "Close ALL Profit Loss EA" to adjust its closing profit value according to my ever growing balance. Right now I have to manually adjust my "Close ALL Profit EA" profit-goal settings according to my ever changing balance. If this is too complicated for a free-answer, then I understand.

 
sonicdeejay:

As you can see from the pic.

According to the rules,

AC>0 && RSI>50 BUY

AC<0&&RSI<50 SELL

The indicator suppose to tigger BUY signals @ line 1,line 2 and line 3.....

but due to my limiting in coding of metatrader,It only trigger at line 1.

I do not know how to program the indicator to trigger another BUY signals @ line 2 and 3...I have some coding issue in looping...

Please Help me out!!!

I attach the same v2.11 beta indicator..

someone nice has help me solved this...

Forex Factory - View Single Post - Sonic Indicator Project!!

sonic

 
Beno:
Gidday In10tion

Attached is the pic of what I am trading.

I use these 4 indicators

Sell signal

1: Slow Stochastic K% Crossed D% over 80 and vice versa for Buy below 20

2: QQE RSI Crossed below ATR and vice versa for Buy

3: CCI Crosses below 0 and vice versa for Buy

4: MACD ma's crossed and 1 bar formed below 0 and vice versa for Buy

If any 3 of these conditions are met then open a position eg stoch fire signal 5 mins later MACD then 20min CCI fires signal = open position.

or any conbinations of the above as long as they are in the same direction as the Slope indicator.

Screen shot attached

Regards

May I know the setting for the slope directional line!!!

sonic

 

Hi,

could someone pls help.

I need an indi that will calculate the middle of the 00:00 hourly candle and draw a line at the +40, +80 and -40, -80 levels from the middle, with price value....

Thks

 
sonicdeejay:
May I know the setting for the slope directional line!!! sonic

period 10

method 2

price 0

Files:
template.tpl  3 kb
 
dragosd1:
Hi,

could someone pls help.

I need an indi that will calculate the middle of the 00:00 hourly candle and draw a line at the +40, +80 and -40, -80 levels from the middle, with price value....

Thks

_TRO_PRICE_LEVELS_TIME

I modified my TRO Price Levels indicator for you.

TRO Price Levels Time has 4 inputs for levels and plots each level above/below the starting point.

Defaults are 10, 20, 40, 80 pips.

You can use the midpoint or the open as the start point.

TRO_HOUR plots the vertical hour lines.

MT4 CODE ATTACHED.

 

How does one incorporate the direction of the slope of a moving average or of digital filter into an EA.

example... I could like to calculate the angle slope from the current bar to lets say 10 bars ago. Or the difference between the angle direction. Is this possible?

 

Hi folks

Please can some tell me if it is possible to have a date limit in an EA, what I mean is can I set an expiry date in an EA that once it reaches the set date it just stops trading.

It would probably say something like this:-

check date, if date is equal to or grater than (set date) do nothing.

That's the english version, I need the MQL4 version...lol

Thanks if anyone can help.

Reason: