READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Internal Error – adding variable to “Move PT to”.

3 replies

mantadiver

Subscriber, bbp_participant, community, 33 replies.

Visit profile

10 years ago #115072

Hi,

 

I am using the “Edit Action” dialog trying to specify a change to the Profit Target of an Open Order.

 

I am defining it where “Price” = Open Price + ( Profit Target in Pips Variable * Pair Decimals Variable)

 

I don’t know how to convert the variable that holds the number of pips for the PT into the correct decimal places for the pair. ie. 0.0001 or 0.001 if JPY pair.

 

Elsewhere in the system you can simply specify the pips but I cannot see how to do that here.

 

Anyway when I try to add a double variable to this dialog I get “An Error occurred” The strategy editor configuration file is invalid. Please contact our support team.

 

Any help on how to get it to calculate the correct price for the revised PT price level without an error would be appreciated.

 

[Screenshot attached].

 

Thank you

 

MantaDiver

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

10 years ago #136715

Have you tried to use ConvertToPips and ConvertToRealPips? They could help. You can find these among “Functions”.

0

mantadiver

Subscriber, bbp_participant, community, 33 replies.

Visit profile

10 years ago #136725

I have created a secondary variable and converted the user input to “RealPips” and it slotted in perfectly.

 

Many thanks for the guidance.

0

mantadiver

Subscriber, bbp_participant, community, 33 replies.

Visit profile

10 years ago #136766

Just a note for anyone else using the ConvertToRealPips function. Make sure you use a “double” variable so that it can calculate the decimals. EAWizard will allow you to do it with “int” but obviously you won’t get the desired outcome.

0

Viewing 3 replies - 1 through 3 (of 3 total)