読み取り専用

フォーラムは現在、読み取り専用のアーカイブとなっています。.

バグ報告やプラットフォームに関する質問はこちら → [email protected]

私たちのコミュニティはDiscordとYouTubeで活動しています。ぜひ参加してください!

ご参加ください Discord YouTube

チャートの色

16 replies

JS17

顧客、bbp_participant、コミュニティ、73件の返信。.

プロフィールを表示

8年前 #201596

皆様、こんにちは,

Is it possible to change the background color of a chart ?

よろしくお願いいたします

ジョン

0

Tomas Matejka

管理者、sq-ultimate、2件の返信.

プロフィールを表示

8年前 #201622

こんにちは,

do you mean MT chart background color? Right click on chart – select Properties and set the color

0

JS17

顧客、bbp_participant、コミュニティ、73件の返信。.

プロフィールを表示

8年前 #201630

トーマス、,

はい

添付ファイル:
に違いない ログインしました 添付ファイルを表示するには.

0

Tomas Matejka

管理者、sq-ultimate、2件の返信.

プロフィールを表示

8年前 #201632

Did you mean you need to change bckgnd color from within the EA?

0

JS17

顧客、bbp_participant、コミュニティ、73件の返信。.

プロフィールを表示

8年前 #201633

トーマス

Yes please

 

0

カリス

カスタマー、bpb_participant、コミュニティ、sq-ultimate、414件の回答。.

プロフィールを表示

8年前 #201638

//+——————————————————————+
//| The function receives chart background color.                    |
//+——————————————————————+
color ChartBackColorGet(const long chart_ID=0)
{
//— prepare the variable to receive the color
long result=clrNONE;
//— reset the error value
ResetLastError();
//— receive chart background color
if(!ChartGetInteger(chart_ID,CHART_COLOR_BACKGROUND,0,result))
{
//— display the error message in Experts journal
Print(__FUNCTION__+”, Error Code = “,GetLastError());
}
//— return the value of the chart property
return((color)result);
}
//+——————————————————————+
//| The function sets chart background color.                        |
//+——————————————————————+
bool ChartBackColorSet(const color clr,const long chart_ID=0)
{
//— reset the error value
ResetLastError();
//— set the chart background color
if(!ChartSetInteger(chart_ID,CHART_COLOR_BACKGROUND,clr))
{
//— display the error message in Experts journal
Print(__FUNCTION__+”, Error Code = “,GetLastError());
return(false);
}
//— successful execution
return(true);
}

0

JS17

顧客、bbp_participant、コミュニティ、73件の返信。.

プロフィールを表示

8年前 #201639

カリス

Thanks for the reply but I don’t do any coding at all and I was hoping that it could be done using the EA Wizard

ありがとうございます

0

カリス

カスタマー、bpb_participant、コミュニティ、sq-ultimate、414件の回答。.

プロフィールを表示

8年前 #201641

Why would you like to have EA Wiz to change your MT4’s chart background color for, i have trouble to understand

0

JS17

顧客、bbp_participant、コミュニティ、73件の返信。.

プロフィールを表示

8年前 #201646

カリス

I want the background color different if I am in a different trade, Hedge/Buy/Sell etc

よろしくお願いいたします

ジョン

0

Tomas Matejka

管理者、sq-ultimate、2件の返信.

プロフィールを表示

8年前 #201648

こんにちは,

you can copy the Karish’s code into EA Wizard / code / CustomFunctions.mq4 (at the end) and save

In EA WIzard you can reference these using “Custom Action” like

CustomAction(ChartBackColorSet(white,0));

It should work

 

0

カリス

カスタマー、bpb_participant、コミュニティ、sq-ultimate、414件の回答。.

プロフィールを表示

8年前 #201678

Put this at the very end of: “EA Wizard / code / CustomFunctions.mq4″

 

bool ChartBackColorSet(const color clr,const long chart_ID=0)
{
//— reset the error value
ResetLastError();
//— set the chart background color
if(!ChartSetInteger(chart_ID,CHART_COLOR_BACKGROUND,clr))
{
//— display the error message in Experts journal
Print(__FUNCTION__+”, Error Code = “,GetLastError());
return(false);
}
//— successful execution
return(true);
}

 

Add this line of code after the OrderSend function ends:

 

if(OP_BUY){ChartBackColorSet(Green, 0);}

if(OP_SELL){ChartBackColorSet(Red, 0);}

 

Im sure you will understand, good luck.

0

JS17

顧客、bbp_participant、コミュニティ、73件の返信。.

プロフィールを表示

8年前 #201680

カリス

Thanks again for your help

But your faith in my abilities are not well placed – lol

 

I created a simple EA to test this and used CustomAction inside EA Wizard to change the background color to red if the EA closed all positions on equity target

When I complied it the editor showed 7 errror messages

I have attached the EA if you can help?

よろしくお願いいたします

ジョン

添付ファイル:
に違いない ログインしました 添付ファイルを表示するには.

0

JS17

顧客、bbp_participant、コミュニティ、73件の返信。.

プロフィールを表示

8年前 #201682

This is the sqw file, just change the file extension back to .sqw and it should be OK

0

JS17

顧客、bbp_participant、コミュニティ、73件の返信。.

プロフィールを表示

8年前 #201684

that did not work, I give up with that  lol

0

JS17

顧客、bbp_participant、コミュニティ、73件の返信。.

プロフィールを表示

8年前 #202118

トーマス

I don’t know were this post above should be ??????????????????, it must be an error

 

Have you looked at my background color file above yet ???

よろしくお願いいたします

ジョン

 

0

Tomas Matejka

管理者、sq-ultimate、2件の返信.

プロフィールを表示

8年前 #202121

こんにちは,

you can simply do this. See file attached

You can use one of these codes https://docs.mql4.com/constants/objectconstants/webcolors

0

15件の返信を表示中 - 1 - 15件目 (全16件中)

1 2 →