Please help me

 

I want to know that Can modify extern Option through pop-up in script

extern double margincall = 0;
extern double takeprofitprice = 0;

I want to know a brake function in expert advisor

Please let me know

Please answer.

sorry, Not proficient in English

 

cjwhscjw
:

I want to know that Can modify extern Option through pop-up in script

extern double margincall = 0;
extern double takeprofitprice = 0;

I want to know a brake function in expert advisor

1. Add the following to your script:

#property show_inputs

2. There is no 'brake' function since there is no debugger. Use Print() or Alert() to help the debugging process.

 
gordon:

1. Add the following to your script:

2. There is no 'brake' function since there is no debugger. Use Print() or Alert() to help the debugging process.


Thank you.

i have to ask one more thing.

//====================================================================

takeprofit2 = NormalizeDouble((takeprofitprice-Close[0])*100000,0);

if(takeprofit2 < 30 && takeprofit2 > 0)
{
Alert("takeprofit 작음",Symbol());
}
if(takeprofit2 < 0)
{
Alert("takeprofit 없음",Symbol());
}

currencymargin0.01 = ((Close[0] / 0.01)+Close[0]);

expectloss = (Close[0] - margincall)*1000; // 마진콜 가격에서 현재가를 빼서 나온 손실액


futuremargincallmax = AccountBalance() - expectloss; // 원금에서 최대 손실 감수금액을 제거

lots = NormalizeDouble(futuremargincallmax / currencymargin,2); //손실가능금액을 재거한 최대 매수가능 금액


if(lots<0.01)
{
lots = 0;
Alert("margincall 큼",Symbol());
}

//====================================================================

Close[0] is error occurs in script

What should I use instead of close[0] ?

 

AccountEquity() or AccountBalance()

BTW what is this

if(takeprofitprice < 30 < 0)

(It's was a good thing if you read this)

 

I want to apply differently to each symbol

if click on other chart to be active, How do I make different change calculations ?

 
cjwhscjw:

I want to apply differently to each symbol

if click on other chart to be active, How do I make different change calculations ?

Can you clarify your question...? It's not clear.
 

Hello

I am beginner. 

I have many orders and I would like a script which could modify all orders profit to same (If I write 1.3844 then all orders profit 1.3844) . 

COuld me help somebody? I would like this in very easy script.

Here is my email: parisgirl123@indamail.hu


Please let me know

Please answer.


sorry, about my English

Best Reguard

 
parisgirl:

Hello

I am beginner.

I have many orders and I would like a script which could modify all orders profit to same (If I write 1.3844 then all orders profit 1.3844) .

COuld me help somebody? I would like this in very easy script.

Here is my email: parisgirl123@indamail.hu


Please let me know

Please answer.


sorry, about my English

Best Reguard


Try this script, but write stop loss ant take profit in price, like 1.25345...
Files:
 

Thankyou very much the soon reply.

THis is good, but when I need fast change all Stops and Profits then very slow.

I would like a script which ask the profit and stops in a window and  change immediately all orders? 

( this could be my surprise for christmas if it could do somebody for me. :) ) 

Best Reguard

- Sorry my bad english

 
parisgirl:

Thankyou very much the soon reply.

THis is good, but when I need fast change all Stops and Profits then very slow.

I would like a script which ask the profit and stops in a window and change immediately all orders?

( this could be my surprise for christmas if it could do somebody for me. :) )

Best Reguard

- Sorry my bad english


Try and this ...
Files:
 

Dear Kindly Pannek,

I think the best script for me is that :

 -I give the first order profit and stop number in manual with the trader.

- After I use the script which modify every orders - same like the first order's stop and profit.

 

This is the last version. Could you do this? Thanks a million if you could help.

Best Reguard

Reason: