Job finished
Specification
I am looking for someone who can code the following indicator:
input 1: xauusd symbol
input 2: GC (gold futures) symbol
input 3: M minutes where we will use the ma of the last M minutes GC-XAU spread
input 4: T threshold in dollar terms. this T will be used to signal where the GC-XAU spread is T over/below the M Minutes ma of GC-XAU spread
input 5: T-Step is the threshold step. after a signal is produced, another signal should be produced after T-Step dollar amount on the same direction again and again.
input 6: alert on/off
* the GC-XAU spread will be constructed by the mids of GC and XAU prices
* the ma, the current spread, and the difference between those should be shown on the indicator window
* if a signal is produced, and alert is on, there should be an alert (also with sound) and next signal should be waited after T-Step amount on the same direction
Example
input 1: XAUUSD.ecn
input 2: GC.Z25
input 3: 30
input 4: 0.5
input 5: 0.25
input 6: true
create a GC.Z25 minus XAUUSD.ecn spread on the mid prices and keep the 30 minutes ma
if the current spread moves above the ma value by 0.5 dollar (50 cents) create an alert
if the current spread moves above the ma value by 0.75 (0.5+0.25) dollar create another alert (meaning at every 0.25 dollar increase create a new alert)
do not create another alert on the opposite direction until current spread moves below the ma value by 0.5 dollar
(and vice-versa for the other case as well)... you got the idea.
also show some info on the indicator window as below:
current spread: cs
M ma: mma
difference: cs-mma
and lastly: I need two quick trading buttons and an amount input
I prefer a lay-out like this
button#1 amount-input button#2
when button#1 hit, whatever the amount is on the amount-input, sell that amount GC and buy that amount of XAU (considering the symbols on input 1 and 2)
when button#2 hit, whatever the amount is on the amount-input, buy that amount GC and sell that amount of XAU (considering the symbols on input 1 and 2)
The budget is 100 USD (no negotiotions)
The time-frame to fisinh the work is 3 days.